mirror of https://github.com/Aidaho12/haproxy-wi
parent
82666df1e6
commit
791802ee02
|
@ -30,12 +30,14 @@ def is_ip_or_dns(server_from_request: str) -> str:
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
|
|
||||||
def checkAjaxInput(ajax_input: str) -> bool:
|
def checkAjaxInput(ajax_input: str) -> str:
|
||||||
pattern = re.compile('[&;|$`]')
|
pattern = re.compile('[&;|$`]')
|
||||||
if pattern.search(ajax_input):
|
if pattern.search(ajax_input):
|
||||||
return True
|
print('error: nice try')
|
||||||
|
sys.exit()
|
||||||
else:
|
else:
|
||||||
return False
|
from shlex import quote
|
||||||
|
return quote(ajax_input)
|
||||||
|
|
||||||
|
|
||||||
form = cgi.FieldStorage()
|
form = cgi.FieldStorage()
|
||||||
|
|
Loading…
Reference in New Issue