Skip to content
Permalink
Browse files Browse the repository at this point in the history
update
  • Loading branch information
peter-mw committed Sep 16, 2021
1 parent 7e8af8f commit f3b86d5
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/MicroweberPackages/Content/ContentManagerHelpers.php
Expand Up @@ -9,6 +9,7 @@
use MicroweberPackages\Category\Models\CategoryItem;
use MicroweberPackages\Menu\Menu;
use MicroweberPackages\App\Http\Controllers\FrontendController;
use voku\helper\AntiXSS;

class ContentManagerHelpers extends ContentManagerCrud
{
Expand Down Expand Up @@ -971,7 +972,13 @@ public function save_from_live_edit($post_data)
}
}
$html_to_save = $the_field_data['html'];
$html_to_save = $content = $this->app->parser->make_tags($html_to_save);
$html_to_save = $this->app->parser->make_tags($html_to_save);

$antixss = new AntiXSS();
$html_to_save = $content = $antixss->xss_clean($html_to_save);




if ($save_global == false and $save_layout == false) {
if ($content_id) {
Expand Down

0 comments on commit f3b86d5

Please sign in to comment.