File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -1560,7 +1560,7 @@ function unset_tfa_key($_data) {
15601560}
15611561function get_tfa ($ username = null , $ id = null ) {
15621562 global $ pdo ;
1563- if (isset ($ _SESSION ['mailcow_cc_username ' ])) {
1563+ if (empty ( $ username ) && isset ($ _SESSION ['mailcow_cc_username ' ])) {
15641564 $ username = $ _SESSION ['mailcow_cc_username ' ];
15651565 }
15661566 elseif (empty ($ username )) {
Original file line number Diff line number Diff line change @@ -397,7 +397,10 @@ jQuery(function($){
397397 {
398398 title : lang . host ,
399399 data : 'hostname' ,
400- defaultContent : ''
400+ defaultContent : '' ,
401+ render : function ( data , type ) {
402+ return escapeHtml ( data ) ;
403+ }
401404 } ,
402405 {
403406 title : lang . username ,
Original file line number Diff line number Diff line change @@ -325,7 +325,10 @@ jQuery(function($){
325325 title : 'URI' ,
326326 data : 'uri' ,
327327 defaultContent : '' ,
328- className : 'dtr-col-md dtr-break-all'
328+ className : 'dtr-col-md dtr-break-all' ,
329+ render : function ( data , type ) {
330+ return escapeHtml ( data ) ;
331+ }
329332 } ,
330333 {
331334 title : 'Method' ,
You can’t perform that action at this time.
0 commit comments