[Vtigercrm-commits] [vtiger-commits] r10167 - /vtigercrm/branches/5.0.3/modules/uploads/add2db.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Mon Feb 12 02:35:52 EST 2007
Author: saraj
Date: Mon Feb 12 00:35:44 2007
New Revision: 10167
Log:
Allowing file names to contain space. Fixes #2972
Modified:
vtigercrm/branches/5.0.3/modules/uploads/add2db.php
Modified: vtigercrm/branches/5.0.3/modules/uploads/add2db.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/uploads/add2db.php (original)
+++ vtigercrm/branches/5.0.3/modules/uploads/add2db.php Mon Feb 12 00:35:44 2007
@@ -20,6 +20,9 @@
$crmid = $_REQUEST['return_id'];
$log->debug("DGDEBUG In add2db.php");
+ //fix for space in file name.
+ $_FILES['filename']['name'] = preg_replace('/\s+/', '_', $_FILES['filename']['name']);
+
// Arbitrary File Upload Vulnerability fix - Philip
$binFile = $_FILES['filename']['name'];
More information about the vtigercrm-commits
mailing list