diff update_repositories.luan @ 16:50a1fe272c10

more security
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 01 Oct 2023 21:36:34 -0600
parents c560b4e2f056
children
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