Tabs: Escape all special characters when sanitizing hash selectors. Fixes #4681 - Tabs: _sanitizeSelector needs to escape '.'.

This commit is contained in:
Scott González 2011-05-17 10:02:22 -04:00
parent 5fb2468f9f
commit 5f10fa6511

View File

@ -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() {