mirror of
https://github.com/getgrav/grav.git
synced 2026-07-20 09:51:02 +02:00
Set default port if not set
This commit is contained in:
@@ -185,7 +185,8 @@ class Uri
|
||||
$params = parse_url($url);
|
||||
|
||||
$this->name = $params['host'];
|
||||
$this->port = $params['port'];
|
||||
$this->port = isset($params['port']) ? $params['port'] : '';
|
||||
|
||||
$this->uri = $params['path'];
|
||||
if (isset($params['query'])) {
|
||||
$this->uri .= '?' . $params['query'];
|
||||
|
||||
Reference in New Issue
Block a user