fixed bug #489770 - File name too long in tbl_replace.php

This commit is contained in:
Loïc Chapeaux
2001-12-06 19:34:42 +00:00
parent 17067657aa
commit d5b7987aaa
2 changed files with 3 additions and 3 deletions

View File

@@ -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 == '') {

View File

@@ -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));