Commit 74258700 authored by Leigh Stoller's avatar Leigh Stoller

Allow HTML in warn/kill message to user.

parent c1220b25
......@@ -4403,7 +4403,7 @@ sub DoWarn()
fatal("Only admins can destroy experiments");
}
if (defined($reason) &&
!TBcheck_dbslot($reason, "default", "fulltext",
!TBcheck_dbslot($reason, "default", "html_fulltext",
TBDB_CHECKDBSLOT_WARN|TBDB_CHECKDBSLOT_ERROR)) {
$errmsg = "Illegal characters in your reason";
$errcode = 1;
......
......@@ -1900,7 +1900,7 @@ function Do_WarnExperiment()
if (isset($ajax_args["reason"]) && $ajax_args["reason"] != "") {
$reason = $ajax_args["reason"];
if (!TBvalid_fulltext($reason)) {
if (!TBvalid_html_fulltext($reason)) {
SPITAJAX_ERROR(1, "Illegal characters in message");
goto bad;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment