Fork from http://subversion.andriylesyuk.com/openid-fix