kopia lustrzana https://github.com/bugout-dev/moonstream
Merge pull request #975 from moonstream-to/allow-div-crawlers
Removed divide char and added comment restrictionpull/977/head
commit
7ef8f61b7b
|
@ -23,7 +23,7 @@ from ..settings import MOONSTREAM_S3_QUERIES_BUCKET_PREFIX
|
|||
logging.basicConfig(level=logging.INFO)
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
QUERY_REGEX = re.compile("[\[\]@#$%^&?;`/]")
|
||||
QUERY_REGEX = re.compile(r"[\[\]@#$%^&?;`]|/\*|\*/")
|
||||
|
||||
|
||||
class QueryNotValid(Exception):
|
||||
|
|
|
@ -62,4 +62,4 @@ class TestQueries(unittest.TestCase):
|
|||
queries.query_validation("OR(1=1)#")
|
||||
|
||||
with self.assertRaises(queries.QueryNotValid):
|
||||
queries.query_validation("/etc/hosts")
|
||||
queries.query_validation("0/**/or/**/1")
|
||||
|
|
Ładowanie…
Reference in New Issue