12100 Auto delete tags <script> and <style>
This commit is contained in:
parent
a22e8745fe
commit
ca5a59c673
|
@ -597,7 +597,7 @@ class page extends common
|
||||||
// Supprime les balises scripts si elles ont été saisies
|
// Supprime les balises scripts si elles ont été saisies
|
||||||
$js = $this->getInput('pageJsEditorContent', null);
|
$js = $this->getInput('pageJsEditorContent', null);
|
||||||
$js = str_replace('<script>', '', $js);
|
$js = str_replace('<script>', '', $js);
|
||||||
$js = str_replace('<script>', '', $js);
|
$js = str_replace('</script>', '', $js);
|
||||||
if ($this->isPost()) {
|
if ($this->isPost()) {
|
||||||
// Enregistre le JS
|
// Enregistre le JS
|
||||||
$this->setData([
|
$this->setData([
|
||||||
|
|
|
@ -12,9 +12,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
|
||||||
<?php echo helper::translate('Ne pas saisir les balises') . htmlentities(' <style></style>'); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<?php echo template::textarea('pageCssEditorContent', [
|
<?php echo template::textarea('pageCssEditorContent', [
|
||||||
'value' => empty($this->getData(['page', $this->getUrl(2), 'css'])) ? '' : $this->getData(['page', $this->getUrl(2), 'css']),
|
'value' => empty($this->getData(['page', $this->getUrl(2), 'css'])) ? '' : $this->getData(['page', $this->getUrl(2), 'css']),
|
||||||
|
|
|
@ -12,9 +12,6 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col12">
|
|
||||||
<?php echo helper::translate('Ne pas saisir les balises') . htmlentities(' <script></script>'); ?>
|
|
||||||
</div>
|
|
||||||
<div class="col12">
|
<div class="col12">
|
||||||
<?php echo template::textarea('pageJsEditorContent', [
|
<?php echo template::textarea('pageJsEditorContent', [
|
||||||
'value' => empty($this->getData(['page', $this->getUrl(2), 'js'])) ? '' : $this->getData(['page', $this->getUrl(2), 'js']),
|
'value' => empty($this->getData(['page', $this->getUrl(2), 'js'])) ? '' : $this->getData(['page', $this->getUrl(2), 'js']),
|
||||||
|
|
Loading…
Reference in New Issue