From 9918dd5eeec527846d43c92a4c9880bfcdd0de14 Mon Sep 17 00:00:00 2001 From: Joseph Lenton Date: Mon, 5 Aug 2013 20:13:00 +0100 Subject: [PATCH 1/2] fixed issue with slashes not being escaped, when replacement code is uploaded --- src/php_error.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/php_error.php b/src/php_error.php index 3953ec3..1796913 100644 --- a/src/php_error.php +++ b/src/php_error.php @@ -1370,7 +1370,7 @@ public function turnOn() { $files = $_POST[ErrorHandler::POST_FILE_LOCATION]; foreach ( $files as $file => $content ) { - @file_put_contents($file, $content); + @file_put_contents( $file, stripcslashes($content) ); } exit(0); From 08d5aacda02352ca72198e3f5161d83338e26389 Mon Sep 17 00:00:00 2001 From: JosephLenton Date: Tue, 11 Dec 2018 01:19:28 +0000 Subject: [PATCH 2/2] Updates --- Readme.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Readme.md b/Readme.md index 3b67717..b874b71 100644 --- a/Readme.md +++ b/Readme.md @@ -1,6 +1,8 @@ PHP Error | Improve Error Reporting for PHP =========================================== +**THIS IS NO LOBGER MAINTAINED, Please leave me alone.** + PHP errors are not good enough for development, it's as simple as that. This aims to solve this. ![Better Error Message](http://i.imgur.com/1G77I.png) @@ -15,8 +17,6 @@ If the server errors during an ajax request, then the request is paused, and the This requires no changes to your JavaScript, and works with existing JS libraries such as jQuery. -Check out the [project homepage](http://phperror.net) for a live demo. - Do not use on a live site! -------------------------- @@ -46,7 +46,7 @@ Features Getting Started --------------- - * [Download](http://phperror.net/download/php_error.php), it's just one file. + * Download, it's just one file. * Place it in your project. * import php_error.php * call \php_error\reportErrors()