mirror of
https://github.com/Garmelon/PFERD.git
synced 2026-04-12 15:35:05 +02:00
Append trailing slash to kit-ipd links to ensure urljoin works as expected
This commit is contained in:
parent
1b6be6bd79
commit
f47d2f11d8
2 changed files with 4 additions and 0 deletions
|
|
@ -24,6 +24,9 @@ class KitIpdCrawlerSection(HttpCrawlerSection):
|
|||
if not target.startswith("https://"):
|
||||
self.invalid_value("target", target, "Should be a URL")
|
||||
|
||||
if not target.endswith("/"):
|
||||
target = target + "/"
|
||||
|
||||
return target
|
||||
|
||||
def link_regex(self) -> Pattern[str]:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue