forked from p15670423/monkey
Use strip() instead of rstrip() when checking duplicate URLs
See https://github.com/guardicore/monkey/pull/1955#discussion_r879351986 for more details.
This commit is contained in:
parent
4b9fe6a83d
commit
0dc1bfc9f5
|
@ -138,7 +138,7 @@ class FlaskDIWrapper:
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _format_url(url: str):
|
def _format_url(url: str):
|
||||||
new_url = url.rstrip("/")
|
new_url = url.strip("/")
|
||||||
return FlaskDIWrapper.url_parameter_regex.sub("<PARAMETER_PLACEHOLDER>", new_url)
|
return FlaskDIWrapper.url_parameter_regex.sub("<PARAMETER_PLACEHOLDER>", new_url)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue