We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2fd36bd commit 1ff77f2Copy full SHA for 1ff77f2
lib/Cake/Routing/Router.php
@@ -888,7 +888,7 @@ public static function url($url = null, $full = false) {
888
$output .= Inflector::underscore($params['controller']) . '/' . $url;
889
}
890
891
- $protocol = preg_match('#^[a-z][a-z0-9+-.]*\://#i', $output);
+ $protocol = preg_match('#^[a-z][a-z0-9+\-.]*\://#i', $output);
892
if ($protocol === 0) {
893
$output = str_replace('//', '/', $base . '/' . $output);
894
0 commit comments