12100 Auto delete tags <script> and <style>

This commit is contained in:
Fred Tempez 2023-01-10 18:23:33 +01:00
parent a22e8745fe
commit ca5a59c673
3 changed files with 1 additions and 7 deletions

View File

@ -597,7 +597,7 @@ class page extends common
// Supprime les balises scripts si elles ont été saisies
$js = $this->getInput('pageJsEditorContent', null);
$js = str_replace('<script>', '', $js);
$js = str_replace('<script>', '', $js);
$js = str_replace('</script>', '', $js);
if ($this->isPost()) {
// Enregistre le JS
$this->setData([

View File

@ -12,9 +12,6 @@
</div>
</div>
<div class="row">
<div class="col12">
<?php echo helper::translate('Ne pas saisir les balises') . htmlentities(' <style></style>'); ?>
</div>
<div class="col12">
<?php echo template::textarea('pageCssEditorContent', [
'value' => empty($this->getData(['page', $this->getUrl(2), 'css'])) ? '' : $this->getData(['page', $this->getUrl(2), 'css']),

View File

@ -12,9 +12,6 @@
</div>
</div>
<div class="row">
<div class="col12">
<?php echo helper::translate('Ne pas saisir les balises') . htmlentities(' <script></script>'); ?>
</div>
<div class="col12">
<?php echo template::textarea('pageJsEditorContent', [
'value' => empty($this->getData(['page', $this->getUrl(2), 'js'])) ? '' : $this->getData(['page', $this->getUrl(2), 'js']),