From b0297147df73e8d46f96379422463a0e61dacf53 Mon Sep 17 00:00:00 2001 From: Dave Kinsella Date: Wed, 10 Jul 2013 11:29:59 +0100 Subject: [PATCH] strip slashes on save my apostrophes weren\'t looking right --- pico_editor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pico_editor.php b/pico_editor.php index 01f1f2b..da44358 100644 --- a/pico_editor.php +++ b/pico_editor.php @@ -125,7 +125,7 @@ private function do_save() $file_url = isset($_POST['file']) && $_POST['file'] ? $_POST['file'] : ''; $file = basename(strip_tags($file_url)); if(!$file) die('Error: Invalid file'); - $content = isset($_POST['content']) && $_POST['content'] ? $_POST['content'] : ''; + $content = isset($_POST['content']) && $_POST['content'] ? stripslashes($_POST['content']) : ''; if(!$content) die('Error: Invalid content'); $file .= CONTENT_EXT;