diff options
author | RaindropsSys <contact@minteck.org> | 2023-06-25 12:08:29 +0200 |
---|---|---|
committer | RaindropsSys <contact@minteck.org> | 2023-06-25 12:08:29 +0200 |
commit | 4f5067da000ee8948edaad4f8fcc6af3e8c7736d (patch) | |
tree | b1bb972f969202a1bd1210c98af61b6db06a832b /admin | |
parent | fa06765aa0e9648a22b6585e48716dd00184a906 (diff) | |
download | delta-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.php | 2 |
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(">", ">", str_replace("<", "<", str_replace("&", "&", $_POST["contents"] ?? json_encode(json_decode(pf_utf8_decode(file_get_contents(getFileFromId($_GET['id'])))), JSON_PRETTY_PRINT)))) ?></div> <style media="screen"> #editor { |