Ticket #30300: 22781-1.patch
File 22781-1.patch, 647 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/js/utils.js
161 161 path = userSettings.url, 162 162 secure = !! userSettings.secure; 163 163 164 name = name.toString().replace( /[^A-Za-z0-9_]/ , '' );164 name = name.toString().replace( /[^A-Za-z0-9_]/g, '' ); 165 165 166 166 if ( typeof value === 'number' ) { 167 167 value = parseInt( value, 10 ); 168 168 } else { 169 value = value.toString().replace( /[^A-Za-z0-9_]/ , '' );169 value = value.toString().replace( /[^A-Za-z0-9_]/g, '' ); 170 170 } 171 171 172 172 settings = settings || {};