@@ -2141,27 +2141,27 @@ $acePath = file_exists('/usr/local/emhttp/plugins/dynamix/javascript/ace/ace.js'
21412141 for (var i = 0; i < allowed.length; i++) {
21422142 var cfg = <?= json_encode($cfg); ?>;
21432143 var showCompose = (cfg['SHOW_COMPOSE_IN_HEADER_MENU'] || '').toString().toLowerCase();
2144- composeClientDebug('Checking referrer path ' + ref.pathname + ' against allowed path ' + allowed[i] + ' with showCompose=' + showCompose, null, 'debug', 'daemon ');
2144+ composeClientDebug('Checking referrer path ' + ref.pathname + ' against allowed path ' + allowed[i] + ' with showCompose=' + showCompose, null, 'user', ' debug', 'settings ');
21452145 if (existingPath && existingPath.toLowerCase() === '/docker' && showCompose === 'true') {
2146- composeClientDebug('Referrer is /Docker and showCompose is true, returning /Compose', null, 'warn', 'daemon ');
2146+ composeClientDebug('Referrer is /Docker and showCompose is true, returning /Compose', null, 'user', ' warn', 'settings ');
21472147 return '/Compose' + (ref.search || '');
21482148 } else if (existingPath && existingPath.toLowerCase() === '/compose' && showCompose === 'false') {
2149- composeClientDebug('Referrer is /Compose and showCompose is false, returning /Docker', null, 'warn', 'daemon ');
2149+ composeClientDebug('Referrer is /Compose and showCompose is false, returning /Docker', null, 'user', ' warn', 'settings ');
21502150 return '/Docker' + (ref.search || '');
21512151 }
21522152 if (p.toLowerCase() === allowed[i].toLowerCase()) {
2153- composeClientDebug('Referrer matches allowed path ' + allowed[i], null, 'debug', 'daemon ');
2153+ composeClientDebug('Referrer matches allowed path ' + allowed[i], null, 'user', ' debug', 'settings ');
21542154 return ref.pathname + (ref.search || '');
21552155 }
21562156 if (allowed[i].toLowerCase().endsWith('/') && p.toLowerCase().startsWith(allowed[i].toLowerCase())) {
2157- composeClientDebug('Referrer matches allowed path prefix ' + allowed[i], null, 'debug', 'daemon ');
2157+ composeClientDebug('Referrer matches allowed path prefix ' + allowed[i], null, 'user', ' debug', 'settings ');
21582158 return ref.pathname + (ref.search || '');
21592159 }
21602160 }
2161- composeClientDebug('Referrer path ' + ref.pathname + ' does not match any allowed paths', null, 'warn', 'daemon ');
2161+ composeClientDebug('Referrer path ' + ref.pathname + ' does not match any allowed paths', null, 'user', ' warn', 'settings ');
21622162 return null;
21632163 } catch (e) {
2164- composeClientDebug('Error parsing referrer URL: ' + e.message, null, 'error', 'daemon ');
2164+ composeClientDebug('Error parsing referrer URL: ' + e.message, null, 'user', ' error', 'settings ');
21652165 return null;
21662166 }
21672167 }
0 commit comments