Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants