Fixing a major bug.
This commit is contained in:
parent
1c2d66a73b
commit
8fc948b6af
|
@ -1,9 +1,4 @@
|
|||
|
||||
<span>
|
||||
<a href="/">Home</a>
|
||||
</span>
|
||||
<p>ByeCorps.com was handwritten by Bye using Sublime Text.</p>
|
||||
|
||||
<span>
|
||||
<a href="/blog/">Blog</a>
|
||||
</span>
|
||||
<span id="time"></span>
|
||||
<p>Some icons by <a href="http://p.yusukekamiyamane.com/">Yusuke Kamiyamane</a>. Licensed under a <a href="http://creativecommons.org/licenses/by/3.0/">Creative Commons Attribution 3.0 License</a>.</p>
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
</p>
|
||||
</td>
|
||||
<td id="badges">
|
||||
<a href="/feed.xml"><img src="img/icons/feed.png"></a>
|
||||
<a href="/feed.xml"><img src="/img/icons/feed.png"></a>
|
||||
<a href="https://validator.w3.org/markup/check?uri=referer"><img
|
||||
src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
|
||||
<a href="https://byemc.xyz"><img src="https://byemc.xyz/assets/buttons/byebutton.gif" alt="Bye's Button"></a>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>ByeCorps</title>
|
||||
<link rel="stylesheet" type="text/css" href="css/style.css">
|
||||
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1 class="hidden">ByeCorps</h1>
|
||||
|
|
|
@ -12,13 +12,17 @@ if(isset($query_string[1])) {
|
|||
$query[$bits[0]] = $bits[1];
|
||||
}
|
||||
|
||||
$path = $query['path'] ?? "/";
|
||||
$path = $query['path'] ?? null;
|
||||
}
|
||||
else {
|
||||
$path = "/";
|
||||
$path = null;
|
||||
$query = array();
|
||||
}
|
||||
|
||||
if (is_null($path)) {
|
||||
$path = $query_string[0];
|
||||
}
|
||||
|
||||
if (str_ends_with($path, "/")) {
|
||||
$path = rtrim($path, "/");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue