Skip to content

Commit

Permalink
config: Fix 84c3b9a for Styx 4.5.0 which accidentally merged Styx 5 P…
Browse files Browse the repository at this point in the history
…HP 8+ changes
  • Loading branch information
ophian committed Oct 26, 2024
1 parent e931930 commit 0c8cc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion serendipity_config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@
// NO, NOT on MYSQL alike databases for use of fulltext extended search operators !!!
// Make sure this variable is always properly sanitized, though it should have gone through routing taking care before. Previously in compat.inc.php, but there LANG_CHARSET was not defined.
if (isset($serendipity['GET']['searchTerm']) && $serendipity['dbType'] !== 'mysqli') {
$serendipity['GET']['searchTerm'] = htmlspecialchars(strip_tags((string)$serendipity['GET']['searchTerm']), double_encode: false);
$serendipity['GET']['searchTerm'] = serendipity_specialchars(strip_tags((string)$serendipity['GET']['searchTerm']), null, LANG_CHARSET, false);
}

// Some default inits...
Expand Down

0 comments on commit 0c8cc14

Please sign in to comment.