Fix found from Mark Draheim: http://mark.diatonic.de/linux/redmine-http-auth-plugin-fix