This keeps special chars from getting into into the sed commands
# Remove url codings from stdin
function get_modeline {
echo "$QUERY_STRING" |
# 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 {
xargs echo -e
}
function get_param {