mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
Tabs: Escape all special characters when sanitizing hash selectors. Fixes #4681 - Tabs: _sanitizeSelector needs to escape '.'.
This commit is contained in:
parent
5fb2468f9f
commit
5f10fa6511
2
ui/jquery.ui.tabs.js
vendored
2
ui/jquery.ui.tabs.js
vendored
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user