From 90fc60502dee139541bae3ea8262150057e163f3 Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Sun, 6 Sep 2020 22:42:25 -0400 Subject: the awk script is more secure now --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 51d8a41..9cb5947 100644 --- a/Makefile +++ b/Makefile @@ -7,4 +7,4 @@ install: /etc/nginx/chsmun.redir cp -R $(SRC) $(WEBROOT) /etc/nginx/chsmun.redir: LINKS - awk '{gsub(/"/,"",$$2);print "location = /chsmun/"$$1" { return 302 \""g$$2"\"; }"}' LINKS > /etc/nginx/chsmun.redir + awk '{gsub(/["\\\$$]/,"\\\\&",$$2);print "location = /chsmun/"$$1" { return 302 \""g$$2"\"; }"}' LINKS > /etc/nginx/chsmun.redir -- cgit