X-Git-Url: http://pileus.org/git/?p=vpaste;a=blobdiff_plain;f=index.cgi;h=0b7859e77c74ccb4d2021509f6d58211da0ba887;hp=8a90e181bf53b2d45f80e57f194c16fbc09dc66d;hb=caf550883fcfbd10cc1a470168f984f4a40672a6;hpb=ebd5e31342d726a8017bb74fc3a939bec4fe67ff diff --git a/index.cgi b/index.cgi index 8a90e18..0b7859e 100755 --- a/index.cgi +++ b/index.cgi @@ -15,7 +15,8 @@ # Remove url codings from stdin function get_modeline { echo "$QUERY_STRING" | - sed -e 's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g; s/[,&?]/ /g' | + sed -e 's/%\([0-9A-F][0-9A-F]\)/\\\\\x\1/g' \ + -e 's/[^a-zA-Z0-9.:=_\-]/ /g' | xargs echo -e } function get_param {