mirror of
https://github.com/kennethreitz-archive/www.gittip.com.git
synced 2026-06-21 15:50:59 +00:00
a5d7ec257b
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.
17 lines
433 B
HTML
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>✓</td></table>
|