Commit 730d095c authored by Leigh Stoller's avatar Leigh Stoller

Fix bug that was causing deny messages to get lost.

parent 2eec27aa
......@@ -423,16 +423,16 @@ function Do_DenyExtension()
SPITAJAX_ERROR(1, "You do not have permission to do this.");
goto bad;
}
if (isset($ajax_args["message"]) && $ajax_args["message"] != "") {
$message = $ajax_args["message"];
if (isset($ajax_args["reason"]) && $ajax_args["reason"] != "") {
$reason = $ajax_args["reason"];
if (!TBvalid_fulltext($message)) {
if (!TBvalid_fulltext($reason)) {
SPITAJAX_ERROR(1, "Illegal characters in message");
goto bad;
}
$filename = tempnam("/tmp", "extension");
$fp = fopen($filename, "w");
fwrite($fp, $message);
fwrite($fp, $reason);
fclose($fp);
}
$webtask = WebTask::CreateAnonymous();
......
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