phpBB

Code Changes

File: includes/acp/acp_database.php

  Unmodified   Added   Modified   Removed
Line 203Line 203
						$file = $request->variable('file', '');
$download = $request->variable('download', '');


						$file = $request->variable('file', '');
$download = $request->variable('download', '');


						if (!preg_match('#^backup_\d{10,}_[a-z\d]{16}\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches))

						if (!preg_match('#^backup_\d{10,}_(?:[a-z\d]{16}|[a-z\d]{32})\.(sql(?:\.(?:gz|bz2))?)$#i', $file, $matches))

						{
trigger_error($user->lang['BACKUP_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}

						{
trigger_error($user->lang['BACKUP_INVALID'] . adm_back_link($this->u_action), E_USER_WARNING);
}

Line 402Line 402
						{
while (($file = readdir($dh)) !== false)
{

						{
while (($file = readdir($dh)) !== false)
{

								if (preg_match('#^backup_(\d{10,})_[a-z\d]{16}\.(sql(?:\.(?:gz|bz2))?)$#', $file, $matches))

								if (preg_match('#^backup_(\d{10,})_(?:[a-z\d]{16}|[a-z\d]{32})\.(sql(?:\.(?:gz|bz2))?)$#i', $file, $matches))

								{
if (in_array($matches[2], $methods))
{

								{
if (in_array($matches[2], $methods))
{