X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=actions%2Fintroedit.sh;h=3c6e69843220b896124f309eeba846c2a1cb09e4;hp=d629a1642071ababd4625d77f0341633c6a94620;hb=HEAD;hpb=e6133c890222e735b322df23f5931c59cea06ae6 diff --git a/actions/introedit.sh b/actions/introedit.sh index d629a16..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) @@ -39,6 +39,6 @@ esac 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"