From dd212fc6a184bd7fd660d1db6698d5bfb54a140a Mon Sep 17 00:00:00 2001 From: rvelices Date: Tue, 26 Jul 2011 04:34:36 +0000 Subject: - ws accepts method name in GET paraeters even if http method is POST (easier to see in apache logs) - picture rating is done through POST and not GET git-svn-id: http://piwigo.org/svn/trunk@11834 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/ws_protocols/rest_handler.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/ws_protocols') diff --git a/include/ws_protocols/rest_handler.php b/include/ws_protocols/rest_handler.php index ece5c0203..d0708f79d 100644 --- a/include/ws_protocols/rest_handler.php +++ b/include/ws_protocols/rest_handler.php @@ -41,6 +41,10 @@ class PwgRestRequestHandler $params[$name]=$value; } } + if ( empty($method) && isset($_GET['method']) ) + { + $method = $_GET['method']; + } if ( empty($method) ) { -- cgit v1.2.3