Code corrections

This commit is contained in:
bergware
2025-02-01 01:19:08 +01:00
parent 964598ad72
commit 169c03aedf
7 changed files with 10 additions and 8 deletions
@@ -1178,6 +1178,8 @@ $('body').on('click','a,.ca_href', function(e) {
}
if (href) {
href = href.trim();
// Sanitize href to prevent XSS
href = href.replace(/[<>"]/g, '');
if (href.match('https?://[^\.]*.(my)?unraid.net/') || href.indexOf('https://unraid.net/') == 0 || href == 'https://unraid.net' || href.indexOf('http://lime-technology.com') == 0) {
if (ca_href) window.open(href,target);
return;