fixes bug 1049683 - DEBUG always on in /_debug_login
Merge pull request #2274 from peterbe/bug-1049683-debug-always-on-in-_debug_login

fixes bug 1049683 - DEBUG always on in /_debug_login