about summary refs log tree commit diff
path: root/scripts/nix-http-export.cgi.in
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2009-02-19T20·46+0000
committerMichael Raskin <7c6f434c@mail.ru>2009-02-19T20·46+0000
commit621093cb1c142e125ed1c534fc0c23c1e8404a66 (patch)
tree0ceb82da08e96dd56f11be030465e6990d2cda6e /scripts/nix-http-export.cgi.in
parent824b154ce82a76bfc604b3084b18e06af4e3d007 (diff)
Replace wrong (w.r.t. PATH) sed call with in-shell substitution
Diffstat (limited to 'scripts/nix-http-export.cgi.in')
-rwxr-xr-xscripts/nix-http-export.cgi.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/nix-http-export.cgi.in b/scripts/nix-http-export.cgi.in
index db2fe78b42aa..19a505af1c50 100755
--- a/scripts/nix-http-export.cgi.in
+++ b/scripts/nix-http-export.cgi.in
@@ -12,7 +12,8 @@ needed_path="?$QUERY_STRING"
 needed_path="${needed_path#*[?&]needed_path=}"
 needed_path="${needed_path%%&*}"
 #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