Commit 809791ff authored by Chad Barb's avatar Chad Barb
Browse files

Added 50kB size limit to files uploaded through nssave mechanism.

Based on testing, this limit should never be exceeded using NetBuild.
parent b5c22368
......@@ -57,6 +57,11 @@ if (! ($fp = fopen($nsfilename, "w"))) {
TBERROR("Could not create temporary file $nsfile", 1);
}
if (strlen( $nsdata ) > 50000) {
$nsdata = "#(NS file was >50kb big)\n" .
"!!! ERROR: NS File Truncated !!!\n";
}
fwrite($fp, $nsdata);
fclose($fp);
?>
\ No newline at end of file
Supports Markdown
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