Fixing a major bug.

This commit is contained in:
bye 2024-03-29 13:28:29 +00:00
parent 1c2d66a73b
commit 8fc948b6af
4 changed files with 10 additions and 11 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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, "/");
}