diff --git a/src/event.php b/src/event.php index 9a038dc..c91d0c3 100644 --- a/src/event.php +++ b/src/event.php @@ -71,7 +71,6 @@ $action = isset($_GET["action"]) ? $_GET["action"] : ""; if ($action == "insert" || $action == "update") { /* validate the data. */ $description = filter_var(trim($_GET["description"], FILTER_SANITIZE_STRING));; - $description = htmlspecialchars($description, ENT_QUOTES, 'UTF-8'); try { $eventdate = new DateTime($_GET["eventdate"]); } diff --git a/src/templates/event.tpl b/src/templates/event.tpl index 9213d95..aa17e33 100644 --- a/src/templates/event.tpl +++ b/src/templates/event.tpl @@ -156,5 +156,6 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA {include file='footer.tpl'} + {if isset($action) && $action == "edit"} {/if}