Skip to content

Commit

Permalink
Add Security::remove_XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontoyaa committed Apr 22, 2021
1 parent c0bcbc3 commit 025577a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions main/inc/lib/nusoap/class.wsdl.php
Original file line number Diff line number Diff line change
Expand Up @@ -855,21 +855,21 @@ function popout(){ // Hides message
<a href='#' onclick='popout()'><font color='#ffffff'>Close</font></a><br><br>";
foreach($data as $donnie => $marie){ // loop through opdata
if($donnie == 'input' || $donnie == 'output'){ // show input/output data
$b .= "<font color='white'>".ucfirst($donnie).':</font><br>';
$b .= Security::remove_XSS("<font color='white'>".ucfirst($donnie).':</font><br>');
foreach($marie as $captain => $tenille){ // loop through data
if($captain == 'parts'){ // loop thru parts
$b .= "&nbsp;&nbsp;$captain:<br>";
//if(is_array($tenille)){
foreach($tenille as $joanie => $chachi){
$b .= "&nbsp;&nbsp;&nbsp;&nbsp;$joanie: $chachi<br>";
$b .= Security::remove_XSS("&nbsp;&nbsp;&nbsp;&nbsp;$joanie: $chachi<br>");
}
//}
} else {
$b .= "&nbsp;&nbsp;$captain: $tenille<br>";
}
}
} else {
$b .= "<font color='white'>".ucfirst($donnie).":</font> $marie<br>";
$b .= Security::remove_XSS("<font color='white'>".ucfirst($donnie).":</font> $marie<br>");
}
}
$b .= '</div>';
Expand Down

0 comments on commit 025577a

Please sign in to comment.