From 87c9429c76ad3bd7317acd38d1fce5e7567cf68b Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 16 Jun 2012 12:12:01 +0300 Subject: [PATCH] fix problem with message replay --- GameEngine/Message.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GameEngine/Message.php b/GameEngine/Message.php index 95f6d293..95a4a984 100644 --- a/GameEngine/Message.php +++ b/GameEngine/Message.php @@ -116,6 +116,8 @@ public function quoteMessage($id) { foreach($this->inbox as $message) { if($message['id'] == $id) { + $message = preg_replace('/\[message\]/', '', $message); + $message = preg_replace('/\[\/message\]/', '', $message); $this->reply = $_SESSION['reply'] = $message; header("Location: nachrichten.php?t=1&id=" . $message['owner']); }