Skip to content
This repository was archived by the owner on Nov 21, 2023. It is now read-only.
This repository was 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

@SeinopSys

Description

@SeinopSys

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)) {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions