Skip to content

Commit

Permalink
Fix com_connect_serverinfo not returning values
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloke committed Mar 10, 2023
1 parent 54d3a63 commit 31085e8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions com_connect.php
Expand Up @@ -1452,14 +1452,14 @@ function com_connect_serverinfo($atts)
$name = com_connect_label2name($label);
}

$name = sanitizeForUrl($name);
$safeName = sanitizeForUrl($name);

if (strlen($name) && $com_connect_submit) {
if (strlen($safeName) && $com_connect_submit) {
if (!$label) {
$label = $name;
$label = $safeName;
}

com_connect_store($name, $label, serverSet($name));
com_connect_store($safeName, $label, serverSet($name));
}
}

Expand Down

0 comments on commit 31085e8

Please sign in to comment.