X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=action.sh;h=caf214c410310da54f6befbe5f95cd6cfa711cf1;hp=1f44ca10bf4c2a54c1cbdea7483fd2fd5ea9c1e5;hb=397e40b92e591ae9066dcabb414d8097555beea8;hpb=2dcd6204f2dea253ee0373f616c77ad75026df15 diff --git a/action.sh b/action.sh index 1f44ca1..caf214c 100755 --- a/action.sh +++ b/action.sh @@ -17,7 +17,7 @@ # You should have received a copy of the GNU Affero General Public License # along with Serve0. If not, see . -ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')" +ACTION="$(printf %s "${_GET[action]}" |egrep '^[a-zA-Z0-9_-]+$')" ACTION="${_EXEC}/actions/${ACTION}.sh" if [ -x "$ACTION" ]; then @@ -25,6 +25,6 @@ if [ -x "$ACTION" ]; then . $ACTION else debug "unable to execute $ACTION" - echo -n "Location: ?p=error\n\n" + printf "Location: ?p=error\n\n" fi