Skip to content
Permalink
Browse files

Tabs: Escape all special characters when sanitizing hash selectors. F…

…ixes #4681 - Tabs: _sanitizeSelector needs to escape '.'.
  • Loading branch information...
scottgonzalez committed May 17, 2011
1 parent 5fb2468 commit 5f10fa6511ae1965088926217776692a3f5663cb
Showing with 1 addition and 1 deletion.
  1. +1 −1 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() {

0 comments on commit 5f10fa6

Please sign in to comment.
You can’t perform that action at this time.