Empty commit

This commit is contained in:
Git 2013-03-13 08:00:43 +00:00
parent 17a0c08279
commit b2a319ff45
4 changed files with 8 additions and 11 deletions

View File

@ -25,7 +25,7 @@
|*************************************************************************/
if (!extension_loaded('memcache')) {
error('Memcache Extension not loaded.');
die('Memcache Extension not loaded.');
}
class CACHE extends Memcache

View File

@ -109,7 +109,7 @@
*///---------------------------------------------------------------------------------
if (!extension_loaded('mysqli')) {
error('Mysqli Extension not loaded.');
die('Mysqli Extension not loaded.');
}
//Handles escaping

View File

@ -26,7 +26,7 @@
// Make sure the filename is not too long
if (mb_strlen($ExtraName, 'UTF-8') + mb_strlen($ExtraDirName, 'UTF-8') + 1 > MAX_FILENAME_LENGTH) {
$Err = 'The torrent contained one or more files with too long a name (' . $ExtraName . ')';
$Err = "The torrent contained one or more files with too long a name: <br />$ExtraDirName/$ExtraName";
break;
}
// Add file and size to array

View File

@ -6,8 +6,8 @@
// the data to the database and the torrent to the disk. //
//******************************************************************************//
ini_set('upload_max_filesize',2097152);
ini_set('max_file_uploads',100);
ini_set('upload_max_filesize', 2097152);
ini_set('max_file_uploads', 100);
define(MAX_FILENAME_LENGTH, 180);
include(SERVER_ROOT.'/classes/class_validate.php');
include(SERVER_ROOT.'/classes/class_feed.php');
@ -388,17 +388,14 @@
check_file($Type, $Name);
// Make sure the filename is not too long
if (mb_strlen($Name, 'UTF-8') + mb_strlen($DirName, 'UTF-8') + 1 > MAX_FILENAME_LENGTH) {
$TooLongPaths[] = $Name;
$TooLongPaths[] = "$DirName/$Name";
}
// Add file info to array
$TmpFileList[] = Torrents::filelist_format_file($File);
}
if (count($TooLongPaths) > 0) {
$Names = '';
foreach ($TooLongPaths as $Name) {
$Names .= '<br>'.$Name;
}
$Err = 'The torrent contained one or more files with too long a name:'.$Names;
$Names = implode(' <br />', $TooLongPaths);
$Err = "The torrent contained one or more files with too long a name:<br /> $Names";
}
$FilePath = db_string($DirName);
$FileString = db_string(implode("\n", $TmpFileList));