Skip to content

Commit fb267cf

Browse files
committed
fix: an other attempt
do not upload picts, and keep them inline
1 parent d86df5c commit fb267cf

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

inc/question.class.php

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -501,21 +501,10 @@ public function prepareInputForUpdate($input) {
501501
}
502502
}
503503

504-
$input = $this->addFiles(
505-
$input,
506-
[
507-
'force_update' => true,
508-
'content_field' => null,
509-
'name' => 'description',
510-
]
511-
);
512-
513-
$input['description'] = Html::entity_decode_deep($input['description']);
514504
foreach ($input['_tag_description'] as $tag) {
515505
$regex = '/<img[^>]+' . preg_quote($tag, '/') . '[^<]+>/im';
516506
$input['description'] = preg_replace($regex, "#$tag#", $input['description']);
517507
}
518-
$input['description'] = Html::entities_deep($input['description']);
519508
}
520509

521510
// generate a unique id

0 commit comments

Comments
 (0)