diff options
author | Holden Rohrer <hr@hrhr.dev> | 2020-09-06 22:42:25 -0400 |
---|---|---|
committer | Holden Rohrer <hr@hrhr.dev> | 2020-09-06 22:42:25 -0400 |
commit | 90fc60502dee139541bae3ea8262150057e163f3 (patch) | |
tree | 14d426e3571b82ee550fdf44affec2fc8c5a1a2a /Makefile | |
parent | 4770b227d574f716bb1e7d5ec5d0640a4d3950df (diff) |
the awk script is more secure now
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |