Skip to content

Commit

Permalink
Ensure we urlencode the value for filtered error logs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdarwood007 committed Aug 15, 2023
1 parent bfc48ee commit 0bdb1ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ManageErrors.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function ViewErrorLog()
'value' => array(
'sql' => in_array($_GET['filter'], array('message', 'url', 'file')) ? base64_decode(strtr($_GET['value'], array(' ' => '+'))) : $smcFunc['db_escape_wildcard_string']($_GET['value']),
),
'href' => ';filter=' . $_GET['filter'] . ';value=' . $_GET['value'],
'href' => ';filter=' . $_GET['filter'] . ';value=' . urlencode($_GET['value']),
'entity' => $filters[$_GET['filter']]['txt']
);

Expand Down

0 comments on commit 0bdb1ba

Please sign in to comment.