From fb48518bc6a1232c1127b7d52e3c53413496a4dd Mon Sep 17 00:00:00 2001 From: speedie Date: Tue, 27 Feb 2024 17:37:09 +0100 Subject: [PATCH] Fix a serious bug --- account.php | 6 +++--- admin.php | 2 +- core.php | 2 +- edit-page.php | 2 +- edit.php | 10 +++++----- login.php | 2 +- register.php | 2 +- setup.php | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/account.php b/account.php index a3fe736..b6b0df1 100755 --- a/account.php +++ b/account.php @@ -81,7 +81,7 @@ $html .= "\t\t\t\t

This is where you can change account options.

\n"; if ($allowPasswordChange || $IsCurrentUser) { $html .= "\t\t\t\t

Change password

\n"; $html .= "\t\t\t\t\t

If you need to change your password, you can do so here:

\n"; - $html .= "\t\t\t\t\t
\n"; + $html .= "\t\t\t\t\t<\n"; if ($IsCurrentUser) { $html .= "\t\t\t\t\t\t\n"; @@ -112,7 +112,7 @@ if ($allowPasswordChange || $IsCurrentUser) { if ($allowUsernameChange || !$IsCurrentUser) { $html .= "\t\t\t\t

Change username

\n"; $html .= "\t\t\t\t\t

If you need to change your username, you can do so here:

\n"; - $html .= "\t\t\t\t\t\n"; + $html .= "\t\t\t\t\t<\n"; if ($IsCurrentUser) { $html .= "\t\t\t\t\t\t\n"; @@ -143,7 +143,7 @@ if (!$IsCurrentUser) { $html .= "\t\t\t\t

Administrator: Change type

\n"; $html .= "\t\t\t\t\t

If you need to change the type, you can do so here:

\n"; - $html .= "\t\t\t\t\t\n"; + $html .= "\t\t\t\t\t<\n"; $html .= "\t\t\t\t\t\t\n"; $html .= "\t\t\t\t\t\t\n"; diff --git a/core.php b/core.php index b669584..3b6ea94 100755 --- a/core.php +++ b/core.php @@ -92,7 +92,7 @@ function printCommentField($html, $id, $pageID) { if (isset($_SESSION['username'])) { $html .= "\t\t\t\t\t

Have anything to say? Feel free to comment it below:

\n"; - $html .= "\t\t\t\t\t\n"; + $html .= "\t\t\t\t\t<\n"; $html .= "\t\t\t\t\t\t
\n"; $html .= "\t\t\t\t\t\t

\n"; $html .= "\t\t\t\t\t\t

\n"; diff --git a/edit-page.php b/edit-page.php index d88697d..ce6fa5b 100755 --- a/edit-page.php +++ b/edit-page.php @@ -67,7 +67,7 @@ $html = ""; $html = printHeader($html, 0); $html .= "\t\t\t

Editing '$defaultEndpoint'

\n"; -$html .= "\t\t\t\t\n"; +$html .= "\t\t\t\t<\n"; $html .= "\t\t\t\t\t
\n"; $html .= "\t\t\t\t\t

\n"; $html .= "\t\t\t\t\t
\n"; diff --git a/edit.php b/edit.php index 94006d7..918fa52 100755 --- a/edit.php +++ b/edit.php @@ -153,15 +153,15 @@ if ($Action == "write") { } $html .= "\t\t\t\t

Switching tab will delete changes made to the Markdown document. Press 'Save' to avoid this.

\n"; - $html .= "\t\t\t\t
\n"; + $html .= "\t\t\t\t<
\n"; if ($postID == -1) { - $html .= "\t\t\t\t
\n"; + $html .= "\t\t\t\t<\n"; } else { if ($Request == "true") { - $html .= "\t\t\t\t\n"; + $html .= "\t\t\t\t<\n"; } else { - $html .= "\t\t\t\t\n"; + $html .= "\t\t\t\t<\n"; } } @@ -196,7 +196,7 @@ if ($Action == "write") { $html .= "\t\t\t\t

$Date: Your changes have been saved.

\n"; } } else if ($Action == "attachments") { - $html .= "\t\t\t\t\n"; + $html .= "\t\t\t\t<\n"; $html .= "\t\t\t\t\t
\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t
\n"; diff --git a/login.php b/login.php index 9b2b3dc..046e5a4 100755 --- a/login.php +++ b/login.php @@ -161,7 +161,7 @@ if (isset($_REQUEST['username']) && isset($_REQUEST['password'])) { $html .= "\t\t\t

Login

\n"; $html .= "\t\t\t\t

Enter your username and password to continue.

\n"; - $html .= "\t\t\t\t
\n"; + $html .= "\t\t\t\t<\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t\t\n"; if (isset($Redirect)) $html .= "\t\t\t\t\t\n"; diff --git a/register.php b/register.php index f8f703f..600d6ec 100755 --- a/register.php +++ b/register.php @@ -57,7 +57,7 @@ if (isset($_REQUEST['username']) && isset($_REQUEST['password'])) { $html .= "\t\t\t

Welcome to $instanceName

\n"; $html .= "\t\t\t\t

To create an account, enter your desired user name and password.

\n"; - $html .= "\t\t\t\t\n"; + $html .= "\t\t\t\t<\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t\t\n"; diff --git a/setup.php b/setup.php index db7769d..7bf7fd6 100755 --- a/setup.php +++ b/setup.php @@ -17,7 +17,7 @@ $html = printHeader($html, 0); $html .= "\t\t\t

Welcome

\n"; $html .= "\t\t\t\t

Before csgen can be used, an administrator user must be created.

\n"; -$html .= "\t\t\t\t\n"; +$html .= "\t\t\t\t<\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t\t\n"; $html .= "\t\t\t\t\t\n";