Fix false-positive replacements from compatibility sweep
Agent-Logs-Url: https://github.com/GameServerPanel/GSP/sessions/89922108-1604-44ae-949d-358d32b9d70a Co-authored-by: iaretechnician <2749183+iaretechnician@users.noreply.github.com>
This commit is contained in:
parent
6c0ca40e09
commit
97010974d7
7 changed files with 10 additions and 11 deletions
|
|
@ -139,7 +139,7 @@ function exec_ogp_module() {
|
|||
echo "</tbody>\n";
|
||||
echo "<tfoot style='border:1px solid grey;'></tfoot>\n";
|
||||
echo "</table>\n";
|
||||
$count_logs = $db->get_logger_count((array)$search_field);
|
||||
$count_logs = $db->get_logger_count($search_field);
|
||||
|
||||
if (isset($_GET['search']) && !empty($_GET['search'])) {
|
||||
$uri = '?m=administration&p=watch_logger&search='.$_GET['search'].'&limit='.$l.'&page=';
|
||||
|
|
@ -149,4 +149,3 @@ function exec_ogp_module() {
|
|||
echo paginationPages($count_logs[0]['total'], $p, $l, $uri, 3, 'watchLogger');
|
||||
}
|
||||
?>
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class HTMLPurifier_AttrDef_URI extends HTMLPurifier_AttrDef
|
|||
do {
|
||||
|
||||
// generic validation
|
||||
$result = $uri->validate($config, is_numeric($context) ? (int)$context : strtotime($context));
|
||||
$result = $uri->validate($config, $context);
|
||||
if (!$result) {
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class HTMLPurifier_URI
|
|||
* @param HTMLPurifier_Context $context
|
||||
* @return bool True if validation/filtering succeeds, false if failure
|
||||
*/
|
||||
public function validate($config, is_numeric($context) ? (int)$context : strtotime($context))
|
||||
public function validate($config, $context)
|
||||
{
|
||||
// ABNF definitions from RFC 3986
|
||||
$chars_sub_delims = '!$&\'()*+,;=';
|
||||
|
|
|
|||
|
|
@ -149,7 +149,7 @@ function exec_ogp_module() {
|
|||
echo "</table>";
|
||||
|
||||
if ($db->isAdmin($_SESSION['user_id']))
|
||||
$count_groups = $db->get_group_count((array)$search_field);
|
||||
$count_groups = $db->get_group_count($search_field);
|
||||
else
|
||||
$count_groups = $db->getUserGroupList_count($_SESSION['user_id'],$search_field);
|
||||
|
||||
|
|
@ -161,4 +161,4 @@ function exec_ogp_module() {
|
|||
}
|
||||
echo paginationPages($count_groups[0]['total'], $page_user, $limit_user, $uri, 3, 'userGroups');
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -131,7 +131,7 @@ function exec_ogp_module() {
|
|||
}
|
||||
echo '</table><br>';
|
||||
|
||||
$count_users = $db->get_user_count((array)$search_field);
|
||||
$count_users = $db->get_user_count($search_field);
|
||||
|
||||
if(isset($_GET['search']) && !empty($_GET['search'])){
|
||||
$uri = '?m=user_admin&search='.$_GET['search'].'&limit='.$limit_user.'&page=';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue