mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 02:06:25 +00:00
Fix #1950 attempt to encode hdomain values before render
This commit is contained in:
@ -103,6 +103,13 @@ window.tabler = {
|
||||
}
|
||||
};
|
||||
|
||||
String.prototype.toHtmlEntities = function() {
|
||||
return this.replace(/./gm, function(s) {
|
||||
// return "&#" + s.charCodeAt(0) + ";";
|
||||
return (s.match(/[a-z0-9\s]+/i)) ? s : "&#" + s.charCodeAt(0) + ";";
|
||||
});
|
||||
};
|
||||
|
||||
require('tabler-core');
|
||||
|
||||
const App = require('./app/main');
|
||||
|
Reference in New Issue
Block a user