Skip to content

Commit 6ffd040

Browse files
committed
fix chat escaping
1 parent 7a648a8 commit 6ffd040

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/MarbleGame.hx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class MarbleGame {
4242

4343
static var instance:MarbleGame;
4444

45-
static var currentVersion = "1.7.2";
45+
static var currentVersion = "1.7.3";
4646

4747
var world:MarbleWorld;
4848

src/gui/ChatCtrl.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ class ChatCtrl extends GuiControl {
8989
if (StringTools.trim(this.chatHudInput.text.text) != "") {
9090
sendText = '<font color="#F29515">${StringTools.htmlEscape(Settings.highscoreName.substr(0, 20))}:</font> ${StringTools.htmlEscape(this.chatHudInput.text.text.substr(0, 150))}';
9191
if (Net.isClient) {
92-
NetCommands.sendChatMessage(StringTools.htmlEscape(sendText));
92+
NetCommands.sendChatMessage(sendText);
9393
}
9494
if (Net.isHost) {
95-
NetCommands.sendServerChatMessage(StringTools.htmlEscape(sendText));
95+
NetCommands.sendServerChatMessage(sendText);
9696
}
9797
}
9898
this.chatHudInput.text.text = "";
@@ -118,7 +118,7 @@ class ChatCtrl extends GuiControl {
118118
}
119119

120120
public function addChatMessage(text:String) {
121-
var realText = StringTools.htmlEscape(text);
121+
var realText = text;
122122
this.chats.push({
123123
text: realText,
124124
age: 10.0

src/gui/MPPlayMissionGui.hx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,10 +434,10 @@ class MPPlayMissionGui extends GuiImage {
434434
if (StringTools.trim(chatInput.text.text) != "") {
435435
var sendText = '<font color="#F29515">${StringTools.htmlEscape(Settings.highscoreName.substr(0, 20))}:</font> ${StringTools.htmlEscape(chatInput.text.text.substr(0, 100))}';
436436
if (Net.isClient) {
437-
NetCommands.sendChatMessage(StringTools.htmlEscape(sendText));
437+
NetCommands.sendChatMessage(sendText);
438438
}
439439
if (Net.isHost) {
440-
NetCommands.sendServerChatMessage(StringTools.htmlEscape(sendText));
440+
NetCommands.sendServerChatMessage(sendText);
441441
}
442442
}
443443
chatInput.text.text = "";
@@ -728,7 +728,7 @@ class MPPlayMissionGui extends GuiImage {
728728
}
729729

730730
public static function addChatMessage(s:String) {
731-
var realText = StringTools.htmlEscape(s);
731+
var realText = s;
732732
allChats.push(realText);
733733
if (allChats.length > 100) {
734734
allChats = allChats.slice(allChats.length - 100);

0 commit comments

Comments
 (0)