Improve page detection : check if . is present in last part
This commit is contained in:
parent
974d355dd4
commit
d6d216db4d
4
iwla.py
4
iwla.py
|
@ -304,6 +304,10 @@ class IWLA(object):
|
||||||
if request.endswith(e):
|
if request.endswith(e):
|
||||||
self.logger.debug("True")
|
self.logger.debug("True")
|
||||||
return True
|
return True
|
||||||
|
# No extension -> page
|
||||||
|
if not '.' in request.split('/')[-1]:
|
||||||
|
self.logger.debug("True")
|
||||||
|
return True
|
||||||
self.logger.debug("False")
|
self.logger.debug("False")
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user