summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-09-06 22:42:25 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-09-06 22:42:25 -0400
commit90fc60502dee139541bae3ea8262150057e163f3 (patch)
tree14d426e3571b82ee550fdf44affec2fc8c5a1a2a
parent4770b227d574f716bb1e7d5ec5d0640a4d3950df (diff)
the awk script is more secure now
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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