Files
www.gittip.com/www/about/error.html
Chad Whitacre a5d7ec257b Subject error handling testing to config; #501
To remove a potential attack vector (email/IRC flood?), let's only allow
error triggering when we explicitly want it. This adds a check for an
environment variable, GITTIP_TEST_ERROR_HANDLING.
2013-01-26 01:06:04 -05:00

17 lines
433 B
HTML

import os
from aspen import Response
^L
if os.environ.get('GITTIP_TEST_ERROR_HANDLING') is not None:
raise Response(int(qs['code']))
^L
<style>
BODY, TABLE, TD { margin: 0; padding: 0; }
TABLE { width: 100%; height: 100%
; border-spacing: 0; border-collapse: collapse
}
TD { text-align: center; vertical-align: middle
; font-size: 128pt;
}
</style>
<table><td>&check;</td></table>