Skip to content
This repository has been archived by the owner on Jan 18, 2025. It is now read-only.

fix/base-url #159

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

fix/base-url #159

wants to merge 6 commits into from

Conversation

lhunath
Copy link
Contributor

@lhunath lhunath commented Jun 7, 2022

Fixed

When a base URL and an image URL are combined but there is no trailing / in base and no leading slash in image, they get mashed together badly:
https://base.comimages/image.jpg

LeonardoCardoso and others added 6 commits September 23, 2021 19:10
…RegexLimit

update Regex.swift. Upgrade regex limit length
When an image URL is not an absolute URL (ie. protocol://url), we want
to put the base URL in front of it, if it is known.

BUT, if neither the base URL ends in / or the image URL start with /,
the current formatImageURL mashes them together without a slash, leading
to something like https://base.comimages/image.jpg
@lhunath
Copy link
Contributor Author

lhunath commented Jun 7, 2022

It looks like your main branch is not up-to-date with release-candidate/3.5.0. This PR is only in regards to commit 5cbefb7

@lhunath lhunath mentioned this pull request Jun 7, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants