Skip to content

Commit

Permalink
fix #2668
Browse files Browse the repository at this point in the history
  • Loading branch information
zoic21 authored Jun 6, 2024
1 parent 4641cef commit 28efa92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/php/utils.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,6 @@ function sizeFormat($size) {
* @return boolean
*/
function netMatch($network, $ip) {

$ip = trim($ip);
if ($ip == trim($network)) {
return true;
Expand Down Expand Up @@ -1551,7 +1550,9 @@ function pageTitle($_page) {
}

function cleanComponanteName($_name) {
return strip_tags(str_replace(array('&', '#', ']', '[', '%', "\\", "/", "'", '"', "*"), '', $_name));
$return = strip_tags(str_replace(array('&', '#', ']', '[', '%', "\\", "/", "'", '"', "*"), '', $_name));
$return = preg_replace('/\s+/', ' ', $return);
return $return;
}

function startsWith($haystack, $needle) {
Expand Down

0 comments on commit 28efa92

Please sign in to comment.