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:
Walter0o
2014-08-27 15:42:59 +02:00
parent 01bd3a493d
commit c0b6f82ad0
3 changed files with 6 additions and 6 deletions

View File

@@ -170,10 +170,10 @@
post_status(href_list["statdisp"])
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()
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()
// OMG CENTCOMM LETTERHEAD

View File

@@ -169,10 +169,10 @@
post_status(href_list["statdisp"])
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()
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()
// OMG CENTCOMM LETTERHEAD

View File

@@ -577,10 +577,10 @@
if("alert")
post_status("alert", href_list["alert"])
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()
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()
else
post_status(href_list["statdisp"])