Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

Image URLs containing a plus sign cause an "opening halted" warning #200

Open
SeinopSys opened this issue Nov 17, 2018 · 0 comments
Open

Comments

@SeinopSys
Copy link
Contributor

The following URL fails to open with Fluidbox: http://placehold.it/1024x768&text=Your+text, and this is logged to the console:

Fluidbox: Fluidbox opening is halted because it has detected characters in your URL string that need to be properly encoded/escaped. Whitespace(s) have to be escaped manually. See RFC3986 documentation.

I believe this is caused by /[\s+]/g being used instead of /\s+/g here:

if(/[\s+]/g.test(url)) {

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant