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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports URLs with spaces in BBC params #7450

Merged

Conversation

Sesquipedalian
Copy link
Member

... despite proper standards and all better judgement. 馃槖

Fixes #7441

... despite proper standards and all better judgement. 馃槖

Signed-off-by: Jon Stovell <jonstovell@gmail.com>
@Sesquipedalian Sesquipedalian added this to the 2.1.3 milestone May 7, 2022
@sbulen
Copy link
Contributor

sbulen commented May 14, 2022

I am having some serious issues testing this... (php 8.0, mysql 8.0)

First problem:
image

(Note I did have a language installed (albanian)...)

So I figured maybe I installed the patch wrong? So I did a fresh install from current GH and got this. The installation couldn't complete...
image

I was debating opening other issues, but these touch on the very functions in question here (iri_to_url).

@sbulen
Copy link
Contributor

sbulen commented May 17, 2022

I think the const usages in class-Punycode.php need to reference self::, e.g., self::IDNA_ERROR_LABEL_TOO_LONG.

I have confirmed if you make those changes to class-Punycode.php, links with spaces now work.

Signed-off-by: Jon Stovell <jonstovell@gmail.com>
Signed-off-by: Jon Stovell <jonstovell@gmail.com>
@Sesquipedalian
Copy link
Member Author

Better now, @sbulen?

@sbulen
Copy link
Contributor

sbulen commented May 20, 2022

Yes, all errors appear to have been addressed, and URLs with spaces now work fine.

Copy link
Contributor

@sbulen sbulen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works now.

@Sesquipedalian Sesquipedalian merged commit 5c50398 into SimpleMachines:release-2.1 May 20, 2022
@Sesquipedalian Sesquipedalian deleted the bbc_url_spaces branch May 20, 2022 02:04
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.

Spaces in URLs cause issues
2 participants