From 8fc948b6af773ea99931091345b3994411f62656 Mon Sep 17 00:00:00 2001
From: bye
Date: Fri, 29 Mar 2024 13:28:29 +0000
Subject: [PATCH] Fixing a major bug.
---
credits.php | 9 ++-------
footer.html | 2 +-
header.html | 2 +-
index.php | 8 ++++++--
4 files changed, 10 insertions(+), 11 deletions(-)
diff --git a/credits.php b/credits.php
index 29e2a09..37ff09f 100644
--- a/credits.php
+++ b/credits.php
@@ -1,9 +1,4 @@
-
- Home
-
+ByeCorps.com was handwritten by Bye using Sublime Text.
-
- Blog
-
-
+Some icons by Yusuke Kamiyamane. Licensed under a Creative Commons Attribution 3.0 License.
diff --git a/footer.html b/footer.html
index 6c13d39..ea59d32 100644
--- a/footer.html
+++ b/footer.html
@@ -8,7 +8,7 @@
-
+
diff --git a/header.html b/header.html
index ec3a59e..dbc88df 100644
--- a/header.html
+++ b/header.html
@@ -2,7 +2,7 @@
ByeCorps
-
+
ByeCorps
diff --git a/index.php b/index.php
index a7547d1..0d764b5 100644
--- a/index.php
+++ b/index.php
@@ -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, "/");
}
|