openrat-cms

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

commit 768ff24e8074874467ee4d4eda1a529e7542580a
parent 3bdad6ae1e25a2dcb159fc7db88f09754faa2fb8
Author: Jan Dankert <devnull@localhost>
Date:   Thu, 10 Jul 2014 21:22:33 +0200

Im Dateinamen ist ein Bindestrich erlaubt.

Diffstat:
model/Object.class.php | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/model/Object.class.php b/model/Object.class.php @@ -364,7 +364,7 @@ SQL // ungueltige Zeichen werden entfernt $gueltig = 'abcdefghijklmnopqrstuvwxyz0123456789.-_'; $tmp = strtr($filename, $gueltig, str_repeat('#', strlen($gueltig))); - return( str_replace('-','',strtr($this->filename, $tmp, str_repeat('-', strlen($tmp)))) ); + return( strtr($this->filename, $tmp, str_repeat('-', strlen($tmp))) ); } @@ -500,7 +500,7 @@ SQL if (count($row) == 0) throw new ObjectNotFoundException('object '.$this->objectid.' not found'); - + $this->setDatabaseRow( $row ); } @@ -664,7 +664,7 @@ SQL $db = db_connection(); $this->checkFilename(); - + $sql = new Sql( <<<SQL UPDATE {t_object} SET parentid = {parentid},