Commit 48821a8c by Veaceslav Medvedev

Update UrlManager.php

parent 61284ed4
...@@ -199,7 +199,9 @@ class UrlManager extends Component ...@@ -199,7 +199,9 @@ class UrlManager extends Component
$rule = ['route' => $rule]; $rule = ['route' => $rule];
if (preg_match("/^((?:($verbs),)*($verbs))\\s+(.*)$/", $key, $matches)) { if (preg_match("/^((?:($verbs),)*($verbs))\\s+(.*)$/", $key, $matches)) {
$rule['verb'] = explode(',', $matches[1]); $rule['verb'] = explode(',', $matches[1]);
if (!in_array('GET', $rule['verb'])) {
$rule['mode'] = UrlRule::PARSING_ONLY; $rule['mode'] = UrlRule::PARSING_ONLY;
}
$key = $matches[4]; $key = $matches[4];
} }
$rule['pattern'] = $key; $rule['pattern'] = $key;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment