mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Fixes #3162 Fixes htmlized shortcode parameters
When entering shortcodes via TinyMCE, the & sign will be converted automatically to & without any chance to prevent this behaviour. The fix just corrects this error right before running the shortcode.
This commit is contained in:
@@ -1021,6 +1021,8 @@ class e_parse_shortcode
|
|||||||
$fullShortcodeKey = $newMatch[0];
|
$fullShortcodeKey = $newMatch[0];
|
||||||
$code = $newMatch[1];
|
$code = $newMatch[1];
|
||||||
$parmStr = trim($newMatch[2]);
|
$parmStr = trim($newMatch[2]);
|
||||||
|
// fix for #3161: htmlized shortcode parameters ...
|
||||||
|
$parmStr = str_ireplace('&', '&', $parmStr);
|
||||||
$debugParm = $parmStr;
|
$debugParm = $parmStr;
|
||||||
parse_str($parmStr,$parm);
|
parse_str($parmStr,$parm);
|
||||||
$parmArray = true;
|
$parmArray = true;
|
||||||
|
Reference in New Issue
Block a user