Skip to content

Commit

Permalink
Tabs: Escape all special characters when sanitizing hash selectors. F…
Browse files Browse the repository at this point in the history
…ixes #4681 - Tabs: _sanitizeSelector needs to escape '.'.
  • Loading branch information
scottgonzalez committed May 17, 2011
1 parent 5fb2468 commit 5f10fa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/jquery.ui.tabs.js
Expand Up @@ -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() {
Expand Down

0 comments on commit 5f10fa6

Please sign in to comment.