Created
August 5, 2018 19:27
-
-
Save mritzmann/4078020a37d5f5a6ae3b9a07dcf58bbd to your computer and use it in GitHub Desktop.
mevdschee/php-crud-api: Issue #393: dot in id
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/api.php b/api.php | |
index ee0769c..080f432 100644 | |
--- a/api.php | |
+++ b/api.php | |
@@ -1887,7 +1887,7 @@ class PHP_CRUD_API { | |
extract($settings); | |
$table = $this->parseRequestParameter($request, 'a-zA-Z0-9\-_'); | |
- $key = $this->parseRequestParameter($request, 'a-zA-Z0-9\-_,'); // auto-increment or uuid | |
+ $key = $this->parseRequestParameter($request, 'a-zA-Z0-9\-,\.'); // auto-increment or uuid | |
$action = $this->mapMethodToAction($method,$key); | |
$include = $this->parseGetParameter($get, 'include', 'a-zA-Z0-9\-_,'); | |
$page = $this->parseGetParameter($get, 'page', '0-9,'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mevdschee/php-crud-api#393 (comment)