openrat-cms

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit 329e7d45dc15854e16c6a6f8335c2756f30b9601
parent 5b8ff45d01f779a583eb4d503c0fe1a46c6793c3
Author: Jan Dankert <devnull@localhost>
Date:   Tue, 25 Sep 2012 20:55:18 +0200

Fehler abfangen, falls FTP-URL nicht vorhanden

Diffstat:
util/Ftp.class.php | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/util/Ftp.class.php b/util/Ftp.class.php @@ -59,9 +59,9 @@ class Ftp $ftp = array_merge($conf_ftp,$ftp); // Nur FTP und FTPS (seit PHP 4.3) erlaubt - if ( !ereg('^ftps?$',$ftp['scheme']) ) + if ( !ereg('^ftps?$',@$ftp['scheme']) ) { - $this->log[] = 'Unknown scheme in FTP Url: '.$ftp['scheme']; + $this->log[] = 'Unknown scheme in FTP Url: '.@$ftp['scheme']; $this->log[] = 'Only FTP (and FTPS, if compiled in) are supported'; $this->ok = false; return;