From d5b7987aaa3e7cc06eb62750e7ec264a471dd9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Thu, 6 Dec 2001 19:34:42 +0000 Subject: [PATCH] fixed bug #489770 - File name too long in tbl_replace.php --- sql.php3 | 4 ++-- tbl_replace.php3 | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sql.php3 b/sql.php3 index 8a2aab346..3a3fee744 100755 --- a/sql.php3 +++ b/sql.php3 @@ -89,7 +89,7 @@ if (isset($btnDrop) && $btnDrop == $strNo) { if (!empty($back)) { $goto = $back; } - if (file_exists('./' . $goto)) { + if (@file_exists('./' . $goto)) { if ($goto == 'db_details.php3' && !empty($table)) { unset($table); } @@ -275,7 +275,7 @@ else { $message = $strEmptyResultSet; } - if (file_exists('./' . $goto)) { + if (@file_exists('./' . $goto)) { $goto = ereg_replace('\.\.*', '.', $goto); // Checks for a valid target script if (isset($table) && $table == '') { diff --git a/tbl_replace.php3 b/tbl_replace.php3 index 71e13c0f4..8f052e8ed 100755 --- a/tbl_replace.php3 +++ b/tbl_replace.php3 @@ -127,7 +127,7 @@ if (isset($primary_key) && ($submit_type != $strInsertAsNewRow)) { // No change -> move back to the calling script else { $message = $strNoModification; - if (file_exists('./' . $goto)) { + if (@file_exists('./' . $goto)) { $js_to_run = 'functions.js'; include('./header.inc.php3'); include('./' . ereg_replace('\.\.*', '.', $goto));