Changeset 847 in ExiteCMS for trunk/includes/Smarty-2.6.18/Smarty.class.php
- Timestamp:
- 09/28/07 21:08:59 (5 years ago)
- File:
-
- 1 edited
-
trunk/includes/Smarty-2.6.18/Smarty.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/Smarty-2.6.18/Smarty.class.php
r843 r847 73 73 * @var string 74 74 */ 75 var $template_dir = array('templates');75 var $template_dir = 'templates'; 76 76 77 77 /** … … 1120 1120 { 1121 1121 static $_cache_info = array(); 1122 1122 1123 1123 $_smarty_old_error_level = $this->debugging ? error_reporting() : error_reporting(isset($this->error_reporting) 1124 1124 ? $this->error_reporting : error_reporting() & ~E_NOTICE); … … 1752 1752 // make source name safe for filename 1753 1753 $_filename = urlencode(basename($auto_source)); 1754 1755 // WANWIZARD: if the filename contains illegal characters, use the MD5-hash1756 if (preg_match("%[\\\/:;*?\"\[\]\%]%", $_filename)) {1757 $_filename = md5($_filename);1758 }1759 // WANWIZARD: end-of-mod1760 1761 1754 $_crc32 = sprintf('%08X', crc32($auto_source)); 1762 1755 // prepend %% to avoid name conflicts with … … 1764 1757 $_crc32 = substr($_crc32, 0, 2) . $_compile_dir_sep . 1765 1758 substr($_crc32, 0, 3) . $_compile_dir_sep . $_crc32; 1766 $_return .= $_filename . '.%%' . $_crc32 . '%%'; 1767 } 1759 $_return .= '%%' . $_crc32 . '%%' . $_filename; 1760 } 1761 1768 1762 return $_return; 1769 1763 }
Note: See TracChangeset
for help on using the changeset viewer.
