Skip to content
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 opened this issue Apr 18, 2011 · 4 comments
Closed

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

mckamey opened this issue Apr 18, 2011 · 4 comments

Comments

@mckamey
Copy link

mckamey commented Apr 18, 2011

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');
@VolkerK
Copy link

VolkerK commented Apr 19, 2011

This is a duplicate of #1383 and #1408

@toddparker
Copy link
Contributor

Closing as a duplicate of #1383

@czuck
Copy link

czuck commented Sep 24, 2012

I am having this single quote (apostrophe) issue with 1.2 rc2, and looking at #1383 and #1408 these issues only address the parens.

@jaspermdegroot
Copy link
Contributor

@ceblanda

I updated the title of #1383. It now mentions "apostropes" as well. It has already been mentioned in the thread of that issue.

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

5 participants