mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 17:02:15 +00:00
Merge branch 'v4-development' into v4-optional-character-fix
This commit is contained in:
Generated
+1
@@ -41,6 +41,7 @@
|
|||||||
<path value="$PROJECT_DIR$/vendor/nikic/php-parser" />
|
<path value="$PROJECT_DIR$/vendor/nikic/php-parser" />
|
||||||
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
<path value="$PROJECT_DIR$/vendor/psr/container" />
|
||||||
<path value="$PROJECT_DIR$/vendor/php-di/php-di" />
|
<path value="$PROJECT_DIR$/vendor/php-di/php-di" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/yaml" />
|
||||||
</include_path>
|
</include_path>
|
||||||
</component>
|
</component>
|
||||||
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
|
<component name="PhpProjectSharedConfiguration" php_language_level="7.1" />
|
||||||
|
|||||||
Generated
+1
@@ -40,6 +40,7 @@
|
|||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/version" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/version" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php56" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-php56" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-util" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/polyfill-util" />
|
||||||
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/yaml" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/theseer/tokenizer" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/theseer/tokenizer" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/webmozart/assert" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/webmozart/assert" />
|
||||||
</content>
|
</content>
|
||||||
|
|||||||
@@ -298,17 +298,13 @@ class InputHandler
|
|||||||
|
|
||||||
// Append POST data
|
// Append POST data
|
||||||
$output += $_POST;
|
$output += $_POST;
|
||||||
|
$contents = file_get_contents('php://input');
|
||||||
|
|
||||||
if (\in_array($this->request->getMethod(), ['put', 'patch', 'delete'], false) === true) {
|
// Append any PHP-input json
|
||||||
|
if (strpos(trim($contents), '{') === 0) {
|
||||||
$contents = file_get_contents('php://input');
|
$post = json_decode($contents, true);
|
||||||
|
if ($post !== false) {
|
||||||
// Append any PHP-input json
|
$output += $post;
|
||||||
if (strpos(trim($contents), '{') === 0) {
|
|
||||||
$post = json_decode($contents, true);
|
|
||||||
if ($post !== false) {
|
|
||||||
$output += $post;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user