Uwe Tews
99fe8120c8
- remove redundant code
2015-06-28 15:45:50 +02:00
Uwe Tews
cd132140f2
- optimize file path normalization
2015-06-28 12:54:47 +02:00
Uwe Tews
aee07f7bba
- optimize security isTrustedResourceDir()
2015-06-28 02:37:41 +02:00
Uwe Tews
aefec40962
- fix special cases of filepath normalization
2015-06-27 18:30:47 +02:00
Uwe Tews
c09b05cbe3
- optimization of directory handling / build realpath
2015-06-21 13:11:52 +02:00
Uwe Tews
31d94d05d3
- optimization of template/config file normalization
2015-06-21 12:52:49 +02:00
Uwe Tews
4e471b19e2
- optimization of template/config file normalization
2015-06-21 12:42:53 +02:00
Uwe Tews
34531edb4c
- bugfix another update on file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56
2015-06-18 02:53:22 +02:00
Uwe Tews
7b469c1f4a
- bugfix file path normalization failed on path containing something like "/.foo/" https://github.com/smarty-php/smarty/issues/56
2015-06-18 01:46:35 +02:00
Uwe Tews
ecddc1f720
- bugfix a relative sub template path could fail if template_dir path did contain /../ https://github.com/smarty-php/smarty/issues/50
...
- optimization rework of path normalization
2015-06-14 03:30:31 +02:00
Uwe Tews
c5915a8c0c
- improvement use is_file() checks to avoid errors suppressed by @ which could still cause problems ( https://github.com/smarty-php/smarty/issues/24 )
2015-05-05 00:41:30 +02:00
Uwe Tews
d528234a97
Small optimization
2015-01-04 05:51:03 +01:00
Uwe Tews
8b71e591c0
some minor speed optimization
2015-01-03 21:27:33 +01:00
Uwe Tews
c55367d1f6
update buildFilepath()
2015-01-02 06:26:04 +01:00
Uwe Tews
c3aa9994c8
rework source resource handling
...
- move class Smarty_Template_Source into its own file
- impelement all source processing into the classes it better belongs to
2015-01-01 23:34:29 +01:00
Uwe.Tews@googlemail.com
425091a19f
- fixed spelling, PHPDoc , minor errors, code cleanup
2014-06-06 02:40:04 +00:00
Uwe.Tews@googlemail.com
2c5ce49b97
- using multiple cwd with relative template dirs could result in identical compiled file names. (issue 194 and topic 25099)
2014-06-02 19:56:38 +00:00
Uwe.Tews@googlemail.com
00ccae8857
- update for PHP 5.4 compatibility
...
- reformat source to PSR-2 standard
2013-07-14 22:15:45 +00:00
rodneyrehm
d0228e96ea
- removed internal muteExpectedErrors() calls in favor of having the implementor call this once from his application
...
- optimized muteExpectedErrors() to pass errors to the latest registered error handler, if appliccable
error muting is now a global thing. this was done because of the overhead set_error_handler imposes and the fact, that only a few people really "need" this.
The decision was made by uwe.tews and rodneyrehm. (just in case anyone asks…)
2011-09-24 12:56:52 +00:00
rodneyrehm
7a6b9dba91
- added $error_muting to suppress error messages even for badly implemented error_handlers
...
- reverted r4301
2011-09-21 22:02:54 +00:00
monte.ohrt
8842e79107
commit 3.1 into the trunk
2011-09-16 14:19:56 +00:00
uwe.tews@googlemail.com
f044178bad
- major update including some API changes
2010-11-11 21:34:36 +00:00
monte.ohrt
21d507a5cb
fix formatting
2010-08-17 15:39:51 +00:00
Uwe.Tews
d287c6b1d9
- bugfix sha1() calculations at extends resource and some general improvments on sha1() handling
2010-01-05 21:10:25 +00:00
Uwe.Tews
d1969d6f56
- use sha1() for filepath encoding
...
- updates on nocache_hash handling
2009-12-29 20:12:11 +00:00
Uwe.Tews
44dd7830dd
--- this is a major update with a couple of internal changes ---
...
- new config file lexer/parser (thanks to Thue Jnaus Kristensen)
- template lexer/parser fixes for PHP and {literal} handing (thanks to Thue Jnaus Kristensen)
- fix on registered plugins with different type but same name
- rewrite of plugin handling (optimized execution speed)
- closed a security hole regarding PHP code injection into cache files
- fixed bug in clear cache handling
- Renamed a couple of internal classes
- code cleanup for merging compiled templates
- couple of runtime optimizations (still not all done)
2009-12-27 15:06:49 +00:00
Uwe.Tews
aaa7b8f245
- bugfix of parent/global variable update at included/merged subtemplates
...
- encode final template filepath into filename of compiled and cached files
2009-12-17 16:58:44 +00:00
Uwe.Tews
a63bc0f83b
- sanitize compile_id and cache_id (replace illegal chars with _)
...
- use _dir_perms and _file_perms properties at file creation
- new constant SMARTY_RESOURCE_DATE_FORMAT (default '%b %e, %Y') which is used as default format in modifier date_format
2009-11-17 17:46:03 +00:00
Uwe.Tews
94b80e892b
- renamed function names of autoloaded Smarty methods to Smarty_Method_....
...
- new security_class property (default is Smarty_Security)
2009-11-03 20:38:38 +00:00
Uwe.Tews
cf379474fd
- change of filenames in sysplugins folder for internal spl_autoload function
...
- lexer/parser changed for increased compilation speed
2009-10-31 00:44:58 +00:00