|
@@ 65-68 (lines=4) @@
|
| 62 |
|
{ |
| 63 |
|
if (!empty($title) && !empty($content)) { |
| 64 |
|
libxml_use_internal_errors(true); // avoid warnings if using html5 tags with $dom->loadXML |
| 65 |
|
if (false == $this->allow_php) { |
| 66 |
|
$title = $this->removePhp($title); |
| 67 |
|
$content = $this->removePhp($content); |
| 68 |
|
} |
| 69 |
|
if (false == $this->allow_script) { |
| 70 |
|
$title = $this->removeScripts($title); |
| 71 |
|
$content = $this->removeScripts($content); |
|
@@ 106-109 (lines=4) @@
|
| 103 |
|
public function editSnippet($index, $title, $content) |
| 104 |
|
{ |
| 105 |
|
libxml_use_internal_errors(true); // avoid warnings if using html5 tags with $dom->loadXML |
| 106 |
|
if (false == $this->allow_php) { |
| 107 |
|
$title = $this->removePhp($title); |
| 108 |
|
$content = $this->removePhp($content); |
| 109 |
|
} |
| 110 |
|
if (false == $this->allow_script) { |
| 111 |
|
$title = $this->removeScripts($title); |
| 112 |
|
$content = $this->removeScripts($content); |