cvs: smarty / Smarty.class.php

From: Date: Wed, 03 Jul 2002 20:37:57 +0000
Subject: cvs: smarty / Smarty.class.php
Groups: php.smarty.cvs 
Request: Send a blank email to php-smarty-cvs+get-173@lists.php.net to get a copy of this message
mohrt Wed Jul 3 16:37:57 2002 EDT Modified files: /smarty Smarty.class.php Log: prepend "N" to filenames to avoid possible OS issues with dir names starting with "-" Index: smarty/Smarty.class.php diff -u smarty/Smarty.class.php:1.295 smarty/Smarty.class.php:1.296 --- smarty/Smarty.class.php:1.295 Wed Jul 3 16:32:44 2002 +++ smarty/Smarty.class.php Wed Jul 3 16:37:57 2002 @@ -1448,7 +1448,9 @@ if($this->use_sub_dirs) { $_filename = basename($auto_source); $_crc32 = crc32($auto_source) . $_dir_sep; - $_crc32 = substr($_crc32,0,3) . $_dir_sep . $_crc32; + // prepend N in case crc32 was negative to avoid possible + // OS issues with directory names starting with a "-" + $_crc32 = 'N' . substr($_crc32,0,3) . $_dir_sep . $_crc32; $res .= $_crc32 . $_filename . '.php'; } else { $res .= str_replace($_dir_sep_enc,'^',urlencode($auto_source));

« previous php.smarty.cvs (#173) next »