Replace wrong (w.r.t. PATH) sed call with in-shell substitution

This commit is contained in:
Michael Raskin 2009-02-19 20:46:45 +00:00
parent 824b154ce8
commit 621093cb1c

View file

@ -12,7 +12,8 @@ needed_path="?$QUERY_STRING"
needed_path="${needed_path#*[?&]needed_path=}" needed_path="${needed_path#*[?&]needed_path=}"
needed_path="${needed_path%%&*}" needed_path="${needed_path%%&*}"
#needed_path="$(echo $needed_path | ./unhttp)" #needed_path="$(echo $needed_path | ./unhttp)"
needed_path="$(echo $needed_path | sed -e 's/%2B/+/g; s/%3D/=/g')" needed_path="${needed_path//%2B/+}"
needed_path="${needed_path//%3D/=}"
echo needed_path: "$needed_path" >&2 echo needed_path: "$needed_path" >&2