Skip to content

Commit

Permalink
fixes some errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PhoenixPeca committed Oct 22, 2018
1 parent a697046 commit eb50bed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/php/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function complete_url($url, $proxify = true)
$GLOBALS['_base']['host'] = empty($GLOBALS['_base']['host']) ? $BASE_ORIGIN['host'] : $GLOBALS['_base']['host'];

if ($sep_pos === false || $sep_pos > 5) {
switch ($url{0}) {
switch ($url[0]) {
case '/':
$url = substr($url, 0, 2) === '//' ? $GLOBALS['_base']['scheme'] . ':' . $url : $GLOBALS['_base']['scheme'] . '://' . $GLOBALS['_base']['host'] . $GLOBALS['_base']['port_ext'] . $url;
break;
Expand Down

0 comments on commit eb50bed

Please sign in to comment.