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
|
actor = 'http://' + actor
|
||||||
else:
|
else:
|
||||||
actor = http_prefix + '://' + actor
|
actor = http_prefix + '://' + actor
|
||||||
|
|
||||||
|
# double quotes
|
||||||
link_str = ' rel="me" href="' + actor + '"'
|
link_str = ' rel="me" href="' + actor + '"'
|
||||||
if link_str in verification_site_html:
|
if link_str in verification_site_html:
|
||||||
return True
|
return True
|
||||||
link_str = ' href="' + actor + '" rel="me"'
|
link_str = ' href="' + actor + '" rel="me"'
|
||||||
if link_str in verification_site_html:
|
if link_str in verification_site_html:
|
||||||
return True
|
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
|
return False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue