X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=Error.page;h=98538b9b480dedcbf906b023ef963af273359c11;hb=dd649d3194c4a568582d07812ecd211319e4d886;hp=519dfbb1b26a9e6a5bbcfba1c0ca305e79f45a43;hpb=470dbac80eb2334fdb04a85e448d6194140d250d;p=busy 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 "
"