Fix multiple product filter - we return all products when more than one is requested
authorChristian Weiske <cweiske@cweiske.de>
Thu, 16 Jan 2020 20:23:20 +0000 (21:23 +0100)
committerChristian Weiske <cweiske@cweiske.de>
Thu, 16 Jan 2020 20:23:20 +0000 (21:23 +0100)
www/.htaccess

index a70563d..1ba4fcc 100644 (file)
@@ -13,6 +13,7 @@ RewriteRule ^api/v1/apps/(.*)$ /api/v1/apps/$1.json? [END]
 
 #rewrite developer products "only" GET parameter
 RewriteCond %{QUERY_STRING} &only=([^&]+)
+RewriteCond %{DOCUMENT_ROOT}/api/v1/developers/$1/products/%1.json -f
 RewriteRule ^api/v1/developers/(.+)/products/ /api/v1/developers/$1/products/%1.json? [END]
 
 RewriteRule ^api/v1/discover/?$ /api/v1/discover-data/discover.json [END]