Commit 94c4cc22 authored by Nigel McNie's avatar Nigel McNie Committed by Nigel McNie
Browse files

Format body text that has come from a WYSIWYG editor. Since this script

doesn't use pieforms, this has to be done manually...
parent 00fedb55
......@@ -40,6 +40,12 @@ $blogpost = param_integer('blogpost');
$uploads = json_decode(param_variable('uploads'));
$artefacts = json_decode(param_variable('artefacts'));
$body = param_variable('body');
if (!get_account_preference($USER->get('id'), 'wysiwyg')) {
$body = format_whitespace($body);
}
else {
$body = clean_text($body);
}
$tags = param_variable('tags');
$userid = $USER->get('id');
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment