Skip to content

Problem with a filename or path that contains ")" char #33

@RickenB

Description

@RickenB

If the filename or the path contains the ")" character, the image doesn't show because the thumb element have the style attribute as this:
<a href="... " style="background-image: url(http://mydomain.com/path/filenamewith).jpg)" ...

This could be resolved adding the ' delimiter before and after the image path:
<a href="... " style="background-image: url('http://mydomain.com/path/filenamewith).jpg')" ...

So you can modify the row 36 with this:
$(this).parents('.sp-wrap').find('.sp-thumbs').append('<a href="' + large + '" style="background-image:url('' + thumb + '')"'+classes+'>');

Hope it helps.

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