Commit 53d8ac18 by Qiang Xue

Merge pull request #4921 from slavcodev/patch-1

Update UrlManager
parents 61284ed4 48821a8c
......@@ -199,7 +199,9 @@ class UrlManager extends Component
$rule = ['route' => $rule];
if (preg_match("/^((?:($verbs),)*($verbs))\\s+(.*)$/", $key, $matches)) {
$rule['verb'] = explode(',', $matches[1]);
$rule['mode'] = UrlRule::PARSING_ONLY;
if (!in_array('GET', $rule['verb'])) {
$rule['mode'] = UrlRule::PARSING_ONLY;
}
$key = $matches[4];
}
$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