changeset 16:50a1fe272c10

more security
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 01 Oct 2023 21:36:34 -0600
parents a6e72cd199f1
children 3e8c7d089e30
files update_repositories.luan
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/update_repositories.luan	Sun Oct 01 19:53:46 2023 -0600
+++ b/update_repositories.luan	Sun Oct 01 21:36:34 2023 -0600
@@ -108,7 +108,7 @@
 do
 	local writer = nginx_dir.child("_all.pass").text_writer()
 	for user, password in pairs(config.users) do
-		local htpasswd = uri("bash:htpasswd -nb "..user.." "..password).read_text()
+		local htpasswd = uri("bash:htpasswd -nb '"..user.."' '"..password.."'").read_text()
 		htpasswd = trim(htpasswd)
 		print_to( writer, htpasswd )
 		htpasswds[user] = htpasswd