X-Git-Url: http://git.plutz.net/?p=busy;a=blobdiff_plain;f=Error.page;h=98538b9b480dedcbf906b023ef963af273359c11;hp=519dfbb1b26a9e6a5bbcfba1c0ca305e79f45a43;hb=ab208fff56e536585bc0978898a7c3f610c73dce;hpb=470dbac80eb2334fdb04a85e448d6194140d250d diff --git a/Error.page b/Error.page index 519dfbb..98538b9 100644 --- a/Error.page +++ b/Error.page @@ -15,10 +15,13 @@ # You should have received a copy of the GNU Affero General Public License # along with Busy. If not, see . -reason=$(egrep -o '(^|&)r=.+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,r=,,') +[ -z "$reason" ] && reason=$(egrep -o '(^|&)r=.+(&|$)' <<<"${QUERY_STRING}" |sed 's,&,,g;s,r=,,') [ -z "$reason" ] && reason="other" -echo '

Error

' +echo " +
+

Error

+" case "${reason}" in tooSmall) echo 'You need to select a file for uploading.' ;; @@ -33,3 +36,4 @@ case "${reason}" in *) echo 'Unknown generic fuckup :-(' ;; esac +echo "
"