X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=actions%2Fintroedit.sh;h=3c6e69843220b896124f309eeba846c2a1cb09e4;hp=5f987fda78ae66513417ef9c4b7ace296a98dcbe;hb=HEAD;hpb=1df6f8d8c85d0dbdaab93b9ee32c396e317cae29 diff --git a/actions/introedit.sh b/actions/introedit.sh index 5f987fd..3c6e698 100755 --- a/actions/introedit.sh +++ b/actions/introedit.sh @@ -16,7 +16,7 @@ # along with Busy. If not, see . -info="$(echo -E "$_GET[\"i\"]" |grep -Ex 'intro|news|[0-9]{10}_[0-9]{3}')" +info="$(printf %s\\n "${_GET[i]}" |grep -Ex 'intro|news|[0-9]{10}_[0-9]{3}')" case "$info" in news) @@ -34,11 +34,11 @@ case "$info" in || info='' esac -[ -n "$info" ] || echo -n "Location: //${HTTP_HOST}/?p=Error&i=noaccess\n\n" +[ -n "$info" ] || echo -n "Location: ?p=Error&i=noaccess\n\n" [ -n "$info" ] || exit 0 cgi_post -[ -z "$_POST[\"cancel\"]" ] && echo -E "$_POST[\"text\"]" >"$_DATA/Home/${file}" +[ -z "${_POST[cancel]}" ] && echo -E "${_POST[text]}" >"$_DATA/Home/${file}" echo -n "Location: ${HTTP_REFERER}#news_${info}\n\n"