Skip to content

Commit 630ba51

Browse files
committed
use base64 for delete_message.php
remove testing bug
1 parent a4cedfb commit 630ba51

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

resources/templates/header.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@
164164
htmlspecialchars($level->value),
165165
htmlspecialchars($title),
166166
htmlspecialchars($body),
167-
htmlspecialchars($level->value),
168-
htmlspecialchars($title),
169-
htmlspecialchars($body),
167+
base64_encode($level->value),
168+
base64_encode($title),
169+
base64_encode($body),
170170
);
171171
}
172172
if (

webroot/panel/ajax/delete_message.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
use UnityWebPortal\lib\UnityHTTPD;
66
use UnityWebPortal\lib\UnityHTTPDMessageLevel;
77

8-
$level_str = UnityHTTPD::getPostData("level");
8+
$level_str = base64_decode(UnityHTTPD::getPostData("level"));
99
$level = UnityHTTPDMessageLevel::from($level_str);
10-
$title = UnityHTTPD::getPostData("title");
11-
$body = UnityHTTPD::getPostData("body");
10+
$title = base64_decode(UnityHTTPD::getPostData("title"));
11+
$body = base64_decode(UnityHTTPD::getPostData("body"));
1212
UnityHTTPD::deleteMessage($level, $title, $body);

0 commit comments

Comments
 (0)