mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-01-18 17:08:48 +00:00
up
This commit is contained in:
parent
c1485582ab
commit
f061e67757
@ -7,7 +7,7 @@ def domain_ok(domain):
|
||||
if domain.split(".")[1] in domains:
|
||||
# ../some => some
|
||||
# Защита от проверки папок выше, чем нужно и др.
|
||||
regex = compile('[^a-zA-Zа-яА-ЯЁё.]')
|
||||
regex = compile('[^a-zA-Zа-яА-ЯЁё._-]')
|
||||
c_domain = regex.sub('', domain)
|
||||
if domain == c_domain:
|
||||
return domain
|
||||
|
Loading…
Reference in New Issue
Block a user