Permalink
Browse files

Tabs: Use $.ui.escapeSelector to avoid invalid selectors

  • Loading branch information...
arschmitz committed Apr 27, 2015
1 parent 737b690 commit 1ee8e230bdc6036bec1e28573c67e2e9ca67252c
Showing with 1 addition and 1 deletion.
  1. +1 −1 ui/tabs.js
View
@@ -713,7 +713,7 @@ $.widget( "ui.tabs", {
_getIndex: function( index ) {
// meta-function to give users option to provide a href string instead of a numerical index.
if ( typeof index === "string" ) {
- index = this.anchors.index( this.anchors.filter( "[href$='" + index + "']" ) );
+ index = this.anchors.index( this.anchors.filter( "[href$='" + $.ui.escapeSelector( index ) + "']" ) );
}
return index;

0 comments on commit 1ee8e23

Please sign in to comment.