mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 12:48:24 +01:00
#4661: Don't double-encode ampersand in e_form::thead()
I guessed the `filter_var(…, FILTER_SANITIZE_STRING)` intention mentioned in 20882920a0b68937570264949512acc0c4841dbd. I guessed wrong. This fixes the guess to be just HTML tag removal. Fixes: https://github.com/e107inc/e107/issues/4661
This commit is contained in:
parent
f1a2f2e768
commit
754c29d230
@ -4457,12 +4457,12 @@ var_dump($select_options);*/
|
||||
$tp = e107::getParser();
|
||||
$text = '';
|
||||
|
||||
$querypattern = $tp->filter($querypattern, 'str');
|
||||
$querypattern = strip_tags($querypattern);
|
||||
if(!$requeststr)
|
||||
{
|
||||
$requeststr = rawurldecode(e_QUERY);
|
||||
}
|
||||
$requeststr = $tp->filter($requeststr, 'str');
|
||||
$requeststr = strip_tags($requeststr);
|
||||
|
||||
// Recommended pattern: mode=list&field=[FIELD]&asc=[ASC]&from=[FROM]
|
||||
if(strpos($querypattern,'&')!==FALSE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user