mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 13:12:22 +00:00
emergency HTML/JS injection fix MK2, the underping.
fixes a minor oversight in proc order after i shuffled them around.
This commit is contained in:
@@ -170,10 +170,10 @@
|
|||||||
post_status(href_list["statdisp"])
|
post_status(href_list["statdisp"])
|
||||||
|
|
||||||
if("setmsg1" in href_list)
|
if("setmsg1" in href_list)
|
||||||
stat_msg1 = reject_bad_text(trim(copytext(sanitize(input("Line 1", "Enter Message Text", stat_msg1) as text|null, 40), 1, MAX_MESSAGE_LEN)))
|
stat_msg1 = reject_bad_text(trim(copytext(sanitize(input("Line 1", "Enter Message Text", stat_msg1) as text|null), 1, 40)), 40)
|
||||||
computer.updateDialog()
|
computer.updateDialog()
|
||||||
if("setmsg2" in href_list)
|
if("setmsg2" in href_list)
|
||||||
stat_msg2 = reject_bad_text(trim(copytext(sanitize(input("Line 2", "Enter Message Text", stat_msg2) as text|null, 40), 1, MAX_MESSAGE_LEN)))
|
stat_msg2 = reject_bad_text(trim(copytext(sanitize(input("Line 2", "Enter Message Text", stat_msg2) as text|null), 1, 40)), 40)
|
||||||
computer.updateDialog()
|
computer.updateDialog()
|
||||||
|
|
||||||
// OMG CENTCOMM LETTERHEAD
|
// OMG CENTCOMM LETTERHEAD
|
||||||
|
|||||||
@@ -169,10 +169,10 @@
|
|||||||
post_status(href_list["statdisp"])
|
post_status(href_list["statdisp"])
|
||||||
|
|
||||||
if("setmsg1")
|
if("setmsg1")
|
||||||
stat_msg1 = trim(copytext(sanitize(input("Line 1", "Enter Message Text", stat_msg1) as text|null, 40), 1, MAX_MESSAGE_LEN))
|
stat_msg1 = reject_bad_text(trim(copytext(sanitize(input("Line 1", "Enter Message Text", stat_msg1) as text|null), 1, 40)), 40)
|
||||||
src.updateDialog()
|
src.updateDialog()
|
||||||
if("setmsg2")
|
if("setmsg2")
|
||||||
stat_msg2 = trim(copytext(sanitize(input("Line 2", "Enter Message Text", stat_msg2) as text|null, 40), 1, MAX_MESSAGE_LEN))
|
stat_msg2 = reject_bad_text(trim(copytext(sanitize(input("Line 2", "Enter Message Text", stat_msg2) as text|null), 1, 40)), 40)
|
||||||
src.updateDialog()
|
src.updateDialog()
|
||||||
|
|
||||||
// OMG CENTCOMM LETTERHEAD
|
// OMG CENTCOMM LETTERHEAD
|
||||||
|
|||||||
@@ -577,10 +577,10 @@
|
|||||||
if("alert")
|
if("alert")
|
||||||
post_status("alert", href_list["alert"])
|
post_status("alert", href_list["alert"])
|
||||||
if("setmsg1")
|
if("setmsg1")
|
||||||
message1 = trim(copytext(sanitize(input("Line 1", "Enter Message Text", message1) as text|null, 40), 1, MAX_MESSAGE_LEN))
|
message1 = reject_bad_text(trim(copytext(sanitize(input("Line 1", "Enter Message Text", message1) as text|null), 1, 40)), 40)
|
||||||
updateSelfDialog()
|
updateSelfDialog()
|
||||||
if("setmsg2")
|
if("setmsg2")
|
||||||
message2 = trim(copytext(sanitize(input("Line 2", "Enter Message Text", message2) as text|null, 40), 1, MAX_MESSAGE_LEN))
|
message2 = reject_bad_text(trim(copytext(sanitize(input("Line 2", "Enter Message Text", message2) as text|null), 1, 40)), 40)
|
||||||
updateSelfDialog()
|
updateSelfDialog()
|
||||||
else
|
else
|
||||||
post_status(href_list["statdisp"])
|
post_status(href_list["statdisp"])
|
||||||
|
|||||||
Reference in New Issue
Block a user