Skip to content
Snippets Groups Projects
Commit 984dd1fd authored by Jaime Perez Crespo's avatar Jaime Perez Crespo
Browse files

Minor change to enhance code clarity.

parent 892784a8
No related branches found
No related tags found
No related merge requests found
......@@ -966,14 +966,13 @@ class HTTP
return $baseScheme.$url;
}
$firstChar = substr($url, 0, 1);
if ($firstChar === '/') {
if ($url[0] === '/') {
return $baseHost.$url;
}
if ($firstChar === '?') {
if ($url[0] === '?') {
return $basePath.$url;
}
if ($firstChar === '#') {
if ($url[0] === '#') {
return $baseQuery.$url;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment