1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 12:48:24 +01: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:
Achim Ennenbach 2018-06-24 21:38:06 +02:00
parent d1a90cb0e8
commit d8c4ed3444

View File

@ -1021,6 +1021,8 @@ class e_parse_shortcode
$fullShortcodeKey = $newMatch[0];
$code = $newMatch[1];
$parmStr = trim($newMatch[2]);
// fix for #3161: htmlized shortcode parameters ...
$parmStr = str_ireplace('&', '&', $parmStr);
$debugParm = $parmStr;
parse_str($parmStr,$parm);
$parmArray = true;