We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1899ffd + a0cf3fa commit 2aa0a39Copy full SHA for 2aa0a39
web-assets/js/setupAuth0WithRedirect.js
@@ -422,7 +422,10 @@ const authSetup = function () {
422
423
// XSS rules
424
const encode = function(str) {
425
- return str.replace(/[\x26\x0A\<>'"]/g,function(str){return"&#"+str.charCodeAt(0)+";"})
+ str = str.replace(/[\x26\x0A\<>'"]/g,function(str){return"&#"+str.charCodeAt(0)+";"})
426
+ return String(str).replace(/[^\w. ]/gi, function(c){
427
+ return '&#'+c.charCodeAt(0)+';';
428
+ });
429
}
430
// end XSS rules
431
0 commit comments