summaryrefslogtreecommitdiff
path: root/admin
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-06-25 12:08:29 +0200
committerRaindropsSys <contact@minteck.org>2023-06-25 12:08:29 +0200
commit4f5067da000ee8948edaad4f8fcc6af3e8c7736d (patch)
treeb1bb972f969202a1bd1210c98af61b6db06a832b /admin
parentfa06765aa0e9648a22b6585e48716dd00184a906 (diff)
downloaddelta-4f5067da000ee8948edaad4f8fcc6af3e8c7736d.tar.gz
delta-4f5067da000ee8948edaad4f8fcc6af3e8c7736d.tar.bz2
delta-4f5067da000ee8948edaad4f8fcc6af3e8c7736d.zip
Updated 3 files and added 2 files (automated)
Diffstat (limited to 'admin')
-rw-r--r--admin/edit/index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/edit/index.php b/admin/edit/index.php
index 8d5f6e0..d5aabf5 100644
--- a/admin/edit/index.php
+++ b/admin/edit/index.php
@@ -37,7 +37,7 @@ require_once $_SERVER['DOCUMENT_ROOT'] . "/includes/navigation.php";
<form action="/admin/edit/save/?id=<?= $_GET['id'] ?>" method="post">
<p>
<input type="hidden" name="contents">
- <div id="editor"><?= $_POST["contents"] ?? json_encode(json_decode(pf_utf8_decode(file_get_contents(getFileFromId($_GET['id'])))), JSON_PRETTY_PRINT) ?></div>
+ <div id="editor"><?= str_replace(">", "&gt;", str_replace("<", "&lt;", str_replace("&", "&amp;", $_POST["contents"] ?? json_encode(json_decode(pf_utf8_decode(file_get_contents(getFileFromId($_GET['id'])))), JSON_PRETTY_PRINT)))) ?></div>
<style media="screen">
#editor {