fix pass-by-reference error

This commit is contained in:
Ben Harris 2018-07-02 17:47:39 -04:00 committed by Gitea
parent e044da97e9
commit 26a8688c73
2 changed files with 3 additions and 2 deletions

View File

@ -23,7 +23,8 @@ class GopherGetter {
// split the incoming URI on :// to prevent too much fooling
// around and to make sure that we normalize our data
$u = array_pop(explode("://", $u));
$split = explode("://", $u);
$u = array_pop($split);
// strip any leading slash from the path

View File

@ -40,7 +40,7 @@ if ( ! array_key_exists('result', $this->data) && ! array_key_exists('file', $th
<ul class="left">
<li class="active"><a href="/">Home</a></li>
<li><a href="/about">About</a></li>
<li><a href="https://github.com/muffinista/gophper-proxy">Code</a></li>
<li><a href="https://git.tilde.team/khuxkm/gopher-proxy">Code</a></li>
</ul>
<ul class="right">