'
cgilite_timeout=2
+debug(){ [ $# -gt 0 ] && printf '%s\n' "$@" >&2 || tee -a /dev/stderr; }
+
PATH(){
local str seg out
[ $# -eq 0 ] && str="$(cat)" || str="$*"
\'*) out="${out}'";;
\[*) out="${out}[";;
\]*) out="${out}]";;
+ "${CR}"*) out="${out}
";;
"${BR}"*) out="${out}
";;
*) out="${out}${str%"${str#?}"}";;
esac
\[*) out="${out}%5B";;
\]*) out="${out}%5D";;
\ *) out="${out}%20";;
+ " "*) out="${out}%09";;
+ "${CR}"*) out="${out}%0D";;
"${BR}"*) out="${out}%0A";;
%*) out="${out}%25";;
*) out="${out}${str%"${str#?}"}";;