Fixing a major bug.
This commit is contained in:
parent
1c2d66a73b
commit
8fc948b6af
|
@ -1,9 +1,4 @@
|
||||||
|
|
||||||
<span>
|
<p>ByeCorps.com was handwritten by Bye using Sublime Text.</p>
|
||||||
<a href="/">Home</a>
|
|
||||||
</span>
|
|
||||||
|
|
||||||
<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>
|
||||||
<a href="/blog/">Blog</a>
|
|
||||||
</span>
|
|
||||||
<span id="time"></span>
|
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
</p>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
<td id="badges">
|
<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
|
<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>
|
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>
|
<a href="https://byemc.xyz"><img src="https://byemc.xyz/assets/buttons/byebutton.gif" alt="Bye's Button"></a>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title>ByeCorps</title>
|
<title>ByeCorps</title>
|
||||||
<link rel="stylesheet" type="text/css" href="css/style.css">
|
<link rel="stylesheet" type="text/css" href="/css/style.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1 class="hidden">ByeCorps</h1>
|
<h1 class="hidden">ByeCorps</h1>
|
||||||
|
|
|
@ -12,13 +12,17 @@ if(isset($query_string[1])) {
|
||||||
$query[$bits[0]] = $bits[1];
|
$query[$bits[0]] = $bits[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = $query['path'] ?? "/";
|
$path = $query['path'] ?? null;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$path = "/";
|
$path = null;
|
||||||
$query = array();
|
$query = array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_null($path)) {
|
||||||
|
$path = $query_string[0];
|
||||||
|
}
|
||||||
|
|
||||||
if (str_ends_with($path, "/")) {
|
if (str_ends_with($path, "/")) {
|
||||||
$path = rtrim($path, "/");
|
$path = rtrim($path, "/");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue