Single and double quotes

merge-requests/30/head
Bob Mottram 2022-11-09 14:16:47 +00:00
parent fcd41e44bf
commit 436791af74
1 changed files with 10 additions and 0 deletions

View File

@ -405,12 +405,22 @@ def verify_html(session, url: str, debug: bool,
actor = 'http://' + actor
else:
actor = http_prefix + '://' + actor
# double quotes
link_str = ' rel="me" href="' + actor + '"'
if link_str in verification_site_html:
return True
link_str = ' href="' + actor + '" rel="me"'
if link_str in verification_site_html:
return True
# single quotes
link_str = " rel=\"me\" href='" + actor + "'"
if link_str in verification_site_html:
return True
link_str = " href='" + actor + "' rel=\"me\""
if link_str in verification_site_html:
return True
return False