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
Description
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
Labels
No labels