Skip to content
This repository was archived by the owner on Oct 8, 2021. It is now read-only.
This repository was archived by the owner on Oct 8, 2021. It is now read-only.

$.mobile.changePage breaks on URLs with quote or parens #1468

Closed
@mckamey

Description

@mckamey

There are a number of places in the code where this expression is used:

$( ":jqmData(url='" + url + "')" )

It breaks if the URL contains parens or single quotes (apostrophe). I've found that if I url-encode these values in my data-url attributes then it works.

Something like the following would at least prevent these expressions from blowing up:

url = url.replace('\'','%27').replace('(','%28').replace(')','%29');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions