X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=action.sh;h=1f44ca10bf4c2a54c1cbdea7483fd2fd5ea9c1e5;hp=390c5ef616d0217385892ca34a7ed952ebed5170;hb=2dcd6204f2dea253ee0373f616c77ad75026df15;hpb=fa5c15e6e36107359d926ece94df2b614f37a37b diff --git a/action.sh b/action.sh index 390c5ef..1f44ca1 100755 --- a/action.sh +++ b/action.sh @@ -19,6 +19,12 @@ ACTION="$(echo "$_GET[\"action\"]" |egrep '^[a-zA-Z0-9_-]+$')" ACTION="${_EXEC}/actions/${ACTION}.sh" -[ -x "$ACTION" ] || echo -n "Location: /?p=error\n\n" -. $ACTION +if [ -x "$ACTION" ]; then + debug "trying to execute $ACTION" + . $ACTION +else + debug "unable to execute $ACTION" + echo -n "Location: ?p=error\n\n" +fi +