Improve page detection : check if . is present in last part

This commit is contained in:
Gregory Soutade 2024-01-30 11:27:03 +01:00
parent 974d355dd4
commit d6d216db4d

View File

@ -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