From: Jerome Jutteau Date: Wed, 5 Jun 2013 15:47:03 +0000 (+0000) Subject: prevent api exec in case of problem X-Git-Tag: 1.1~207 X-Git-Url: https://git.p6c8.net/jirafeau_mojo42.git/commitdiff_plain/bd23d65292b6eda5c00e85ddce27235b5529a565?ds=inline prevent api exec in case of problem --- diff --git a/script.php b/script.php index 9bf9578..a6b9457 100755 --- a/script.php +++ b/script.php @@ -250,6 +250,13 @@ if ($_SERVER['REQUEST_METHOD'] == "GET" && count ($_GET) == 0) /* Lets use interface now. */ header('Content-Type: text; charset=utf-8'); +check_errors (); +if (has_error ()) +{ + echo "Error"; + exit; +} + /* Upload file */ if (isset ($_FILES['file']) && is_writable (VAR_FILES) && is_writable (VAR_LINKS))