X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=page.sh;fp=page.sh;h=ef9df2e3def9271c49ec455cf3d251df17ed4e68;hp=d4e38cec88e2d79c3354feedde3bc74934ecd5cb;hb=9b62da2cc5552e018fe8c48360c770446a9a6b55;hpb=3a43bceff672dae6d391a53a1a12943c207aeff1 diff --git a/page.sh b/page.sh index d4e38ce..ef9df2e 100755 --- a/page.sh +++ b/page.sh @@ -19,7 +19,7 @@ printf "Content-Type: text/html;charset=utf-8\n\n" -PAGE="$(printf %s "$_GET[\"p\"]" |egrep '^[a-zA-Z0-9_-]+$')" +PAGE="$(printf %s "${_GET[p]}" |egrep '^[a-zA-Z0-9_-]+$')" PAGE="${_EXEC}/pages/${PAGE}.sh" [ -x "$PAGE" ] || PAGE="${_EXEC}/pages/error.sh"