Ver código fonte

added exception on wrong ogc:Filter in wfs api

Piotr Labudda 9 anos atrás
pai
commit
111a769409
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      SE/se-lib/Api/WfsDataServer.php

+ 1 - 0
SE/se-lib/Api/WfsDataServer.php

@@ -59,6 +59,7 @@ class Api_WfsDataServer extends Api_WfsServerBase {
 			$reqBody = Request::getRequestBody();
 			if (!empty($reqBody)) {
 				$ogcFilter = $this->convertOgcFilterFromRequestBody($reqBody);
+				if (empty($ogcFilter)) throw new Api_WfsException("Error Processing ogc:Filter", 501);
 			}
 		}
 		if ('hits' == V::get('resultType', '', $_REQUEST)) {// resultType=hits