Allowed shellscripts to be uploaded.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11043 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2011-11-23 18:39:33 +00:00
parent f15f04a20e
commit 673e408c6e

View File

@ -3,7 +3,7 @@
* Upload a given file into /var/tmp
*/
$type = $_FILES["file"]["type"];
if ($type == "text/plain" || $type == "application/octet-stream" || $type == "application/x-shellscript") {
if ($type == "text/plain" || $type == "application/octet-stream" || $type == "application/x-shellscript" || $type == "application/x-sh") {
$error = $_FILES["file"]["error"];
if ($error) {
echo "Return Code: " . $error;