summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
456423f)
svn path=/trunk/; revision=25
PAGE=$(validate "${PAGE:-${_GET[page]}}" '[a-zA-Z0-9_-]+' '')
ACTION=$(validate "${ACTION:-${_GET[action]}}" '[a-zA-Z0-9_-]+' '')
PAGE=$(validate "${PAGE:-${_GET[page]}}" '[a-zA-Z0-9_-]+' '')
ACTION=$(validate "${ACTION:-${_GET[action]}}" '[a-zA-Z0-9_-]+' '')
-STATIC=$(validate "${STATIC:-${_GET[static]}}" '[^\.]+' '')
+STATIC=$(invalidate "${STATIC:-${_GET[static]}}" '(^|.*/)\.\./.*' '')
if [ -n "$PAGE" -a -x "${_EXEC}/pages/${PAGE}.sh" ]; then
. "$_EXEC/shcgi/page.sh"
if [ -n "$PAGE" -a -x "${_EXEC}/pages/${PAGE}.sh" ]; then
. "$_EXEC/shcgi/page.sh"