Standards
This commit is contained in:
parent
2f3e727570
commit
051771c4e2
|
@ -62,7 +62,7 @@ function markdown_post_local_start(App $a, &$request) {
|
||||||
|
|
||||||
$request['body'] = Markdown::toBBCode($request['body']);
|
$request['body'] = Markdown::toBBCode($request['body']);
|
||||||
|
|
||||||
foreach ($elements as $element) {
|
foreach (array_reverse($elements) as $element) {
|
||||||
$request['body'] = preg_replace_callback("/\[base64" . $element . "\](.*?)\[\/base64" . $element . "\]/ism",
|
$request['body'] = preg_replace_callback("/\[base64" . $element . "\](.*?)\[\/base64" . $element . "\]/ism",
|
||||||
function ($match) use ($element) {
|
function ($match) use ($element) {
|
||||||
return '[' . $element . ']' . base64_decode($match[1]) . '[/' . $element . ']';
|
return '[' . $element . ']' . base64_decode($match[1]) . '[/' . $element . ']';
|
||||||
|
|
Loading…
Reference in a new issue