aboutsummaryrefslogtreecommitdiffstats
path: root/ui/jquery.ui.tabs.js
diff options
context:
space:
mode:
authorScott González <scott.gonzalez@gmail.com>2011-05-17 10:02:22 -0400
committerScott González <scott.gonzalez@gmail.com>2011-05-17 10:02:22 -0400
commit5f10fa6511ae1965088926217776692a3f5663cb (patch)
treee75895abc18fc4a7bc531b107edff9c67ca460dd /ui/jquery.ui.tabs.js
parent5fb2468f9f3e30e8d5d606bd404c1a9a3ec03e84 (diff)
downloadjquery-ui-5f10fa6511ae1965088926217776692a3f5663cb.tar.gz
jquery-ui-5f10fa6511ae1965088926217776692a3f5663cb.zip
Tabs: Escape all special characters when sanitizing hash selectors. Fixes #4681 - Tabs: _sanitizeSelector needs to escape '.'.
Diffstat (limited to 'ui/jquery.ui.tabs.js')
-rw-r--r--ui/jquery.ui.tabs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/jquery.ui.tabs.js b/ui/jquery.ui.tabs.js
index 36c9000ef..7702c1e4b 100644
--- a/ui/jquery.ui.tabs.js
+++ b/ui/jquery.ui.tabs.js
@@ -144,7 +144,7 @@ $.widget( "ui.tabs", {
_sanitizeSelector: function( hash ) {
// we need this because an id may contain a ":"
- return hash ? hash.replace( /:/g, "\\:" ) : "";
+ return hash ? hash.replace( /[!"$%&'()*+,.\/:;<=>?@[\]^`{|}~]/g, "\\$&" ) : "";
},
refresh: function() {