From debd083735fa613c06c901743c4b599d6bf063c5 Mon Sep 17 00:00:00 2001 From: Sei Lisa Date: Sat, 2 Sep 2017 11:34:49 +0200 Subject: [PATCH] Report bad request if no valid action was specified. --- php/settings.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/php/settings.php b/php/settings.php index 32d7dcb..f68b24c 100644 --- a/php/settings.php +++ b/php/settings.php @@ -176,6 +176,10 @@ else if(isset($_REQUEST['q'])){ // read a record } echo $out; } +else{ + header('HTTP/1.0 400 Bad Request'); + die("400 Bad Request: No valid action specified."); +} function parse_llHTTPRequest_headers(){ $position_array = explode(', ',substr($_SERVER['HTTP_X_SECONDLIFE_LOCAL_POSITION'],1,-1));