From 621093cb1c142e125ed1c534fc0c23c1e8404a66 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 19 Feb 2009 20:46:45 +0000 Subject: [PATCH] Replace wrong (w.r.t. PATH) sed call with in-shell substitution --- scripts/nix-http-export.cgi.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/nix-http-export.cgi.in b/scripts/nix-http-export.cgi.in index db2fe78b..19a505af 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