mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-18 05:58:02 +00:00
Do no longer append '/' automatically, but make sure we have a protocol in place -> Fixes and closes #35
This commit is contained in:
@@ -69,8 +69,8 @@ class CheckView(FormView):
|
|||||||
mail_hash256 = hash_obj.hexdigest()
|
mail_hash256 = hash_obj.hexdigest()
|
||||||
size = form.cleaned_data['size']
|
size = form.cleaned_data['size']
|
||||||
if form.cleaned_data['openid']:
|
if form.cleaned_data['openid']:
|
||||||
if form.cleaned_data['openid'][-1] != '/':
|
if not form.cleaned_data['openid'].startswith('http://') and not form.cleaned_data['openid'].startswith('https://'):
|
||||||
form.cleaned_data['openid'] += '/'
|
form.cleaned_data['openid'] = 'http://%s' % form.cleaned_data['openid']
|
||||||
openidurl = libravatar_url(
|
openidurl = libravatar_url(
|
||||||
openid=form.cleaned_data['openid'],
|
openid=form.cleaned_data['openid'],
|
||||||
size=form.cleaned_data['size'],
|
size=form.cleaned_data['size'],
|
||||||
|
|||||||
Reference in New Issue
Block a user