From 5c707597ba936b1b82ee9a1cf546e720d1a490bd Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Thu, 19 Sep 2024 14:49:29 +0200
Subject: Small bugfixes
---
src/application/views/form_login.php | 2 ++
src/application/views/view_user.php | 2 +-
src/index.php | 2 +-
3 files changed, 4 insertions(+), 2 deletions(-)
(limited to 'src')
diff --git a/src/application/views/form_login.php b/src/application/views/form_login.php
index 87ee516..5fa79ad 100644
--- a/src/application/views/form_login.php
+++ b/src/application/views/form_login.php
@@ -38,12 +38,14 @@ if (($_formError = RequestUtils::getAndClearFormError("login")) !== null) {
= __("I forgot my password") ?>
+
+
diff --git a/src/application/views/view_user.php b/src/application/views/view_user.php
index 5c89411..a38096f 100644
--- a/src/application/views/view_user.php
+++ b/src/application/views/view_user.php
@@ -56,7 +56,7 @@ $emailPending = $isOwnProfile && $user->pendingEmail !== null;
- = htmlentities(StringUtils::truncate(strip_tags(renderPost($post->content)), 100)) ?>
+ = htmlentities(html_entity_decode(StringUtils::truncate(strip_tags(renderPost($post->content)), 100))) ?>
= __("posted on %post_date% in %topic%", [
"post_date" => '' . htmlentities($post->postDate->format("c")) . '',
"topic" => '' .
diff --git a/src/index.php b/src/index.php
index 8202365..9c5d678 100644
--- a/src/index.php
+++ b/src/index.php
@@ -23,7 +23,7 @@ use Symfony\Contracts\Service\Attribute\Required;
header_remove("X-Powered-By");
-const MYSTICBB_VERSION = "0.1.0";
+const MYSTICBB_VERSION = "0.1.1";
if (($_SERVER["HTTP_USER_AGENT"] ?? "") === "") {
http_response_code(403);
--
cgit v1.2.3