summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2020-01-11 05:39:46 +0000
committerKatolaZ <katolaz@freaknet.org>2020-01-11 05:39:46 +0000
commit870f04f257a54bcecce171542329819b4db0537c (patch)
tree40f3b28528fdd54577cc5f53b89e1ec8256533ee
parent57ed43be9db7243a1f03e689236c143b4967fc0d (diff)
improve special char treatment
-rwxr-xr-xsearch_cgi2
1 files changed, 1 insertions, 1 deletions
diff --git a/search_cgi b/search_cgi
index 68031bb..1c8b791 100755
--- a/search_cgi
+++ b/search_cgi
@@ -13,7 +13,7 @@ printlines (){
printf "Content-type: text/html\n\n"
-query=$(echo "${QUERY_STRING}" | sed -E 's/[\$^?<>@;\*`\|]//g')
+query=$(echo "${QUERY_STRING}" | sed -E 's/["\\$^?<>@;*`|/()]//g')
##func
print_head(){