File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 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 (
Original file line number Diff line number Diff line change 55use UnityWebPortal \lib \UnityHTTPD ;
66use 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 " ) );
1212UnityHTTPD::deleteMessage ($ level , $ title , $ body );
You can’t perform that action at this time.
0 commit comments