mirror of https://gitlab.com/bashrc2/epicyon
Single and double quotes
parent
fcd41e44bf
commit
436791af74
10
session.py
10
session.py
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue