Commit Graph

918 Commits

Author SHA1 Message Date
messju
50b6c2b425 fix: proper initialistaion of $content.
thanks to Dmitry Koteroff for pointing this out.
2004-06-01 16:46:43 +00:00
messju
1c5ae377fd added obfuscation of protocol-string in {mailto} when using
hex-encoding (thanks to bharat)
2004-05-28 08:44:46 +00:00
messju
72fdad0064 enhanced auto-generated filenames for templates_c and cache
incremented Smarty::_version because the tempfiles' structure changed
a little
2004-05-26 15:26:41 +00:00
messju
b85b3fcb7f fixed typo in error-messages 2004-05-21 14:11:41 +00:00
mohrt
530795cbf5 add 'nonstd' escape modifier 2004-05-12 19:40:36 +00:00
mohrt
bcb1d2a196 update textformat to not output wrap chars after last para 2004-05-07 22:50:11 +00:00
messju
e72c698496 use tempnam() instead of unqid() to create better temporary files in
smarty_core_write_file().

(thanks to xces for finding this race-condition and his work on
fixing it)
2004-05-06 12:37:46 +00:00
messju
f63cb7a54b added check if for file_exists() to Smarty::_read_file() 2004-05-04 16:44:47 +00:00
mohrt
16530ef589 add 'mail' attribute to escape modifier 2004-04-30 14:50:17 +00:00
messju
4d340b91c9 removed unused 2nd param in call to _parse_var() 2004-04-16 10:31:43 +00:00
messju
984d2f36e6 added explanation for $this->_num_const_regexp 2004-04-16 08:50:27 +00:00
messju
20b4be1048 added escape type "decentity" to smarty_modifier_escape() 2004-04-16 08:40:42 +00:00
messju
397714a96c enabled numerical constants be parsed as statements.
(like {10} or {10|@range:12} )
2004-04-16 08:34:39 +00:00
messju
886059c511 removed unused $smarty_compiler->_dvar_num_var_regexp 2004-04-16 08:30:10 +00:00
messju
121e0e6287 reverted Stuff 2004-04-16 08:06:40 +00:00
messju
b73d2a7e63 reverted stuff 2004-04-16 08:03:07 +00:00
messju
729ebe26ed Smarty_Compiler.class.php 2004-04-16 07:53:37 +00:00
messju
ac9aafbb11 made smarty_core_write_compiled_include() php5-aware
if someone knows a better way than patching the source with the
tokenizer, please stand up!
2004-04-15 15:06:09 +00:00
messju
91549d3dba removed unused functionality to load a subset of lines from a file in
Smarty::_read_file()

additionally removed a warning that is emitted since php-4.3.5 when
fread() is called on an empty file (with filesize()==0). thanks to
Andreas Streichardt who pointed this out.
2004-04-12 12:38:36 +00:00
messju
a93fc7a1bc smarty_core_is_secure() only checks the file for readability now, not
the directory where is in.
2004-04-12 12:20:43 +00:00
messju
f75615d03c removed unused security_setting 'ALLOW_CONSTANTS' 2004-04-12 10:34:44 +00:00
messju
e15005fa24 removed trailing spaces 2004-04-07 19:58:54 +00:00
messju
9fa78a2cfd removed unused $smarty->_error_msg 2004-04-07 18:06:06 +00:00
mohrt
9177ccb406 fix problem with debug_tpl path and security 2004-03-30 15:51:27 +00:00
mohrt
1db754e93a fix problem displaying debug console when $default_resource_type is not "file:" 2004-03-30 14:36:56 +00:00
messju
3cd25264cf unrolled call to the is_compiled()-check to be able to supply the
correct resource_base_path for config_load. this avoids errors when
config-files are accessed where security is enabled.

thanks to shuther for pointing out this bug.
2004-03-23 09:49:23 +00:00
messju
840b968bab removed merging of $smarty->template_dir into $smarty->secure_dir
the resource_base_path is considerd secure instead. this change should
have absolutely no impact on smarty's security's behaviour
2004-03-18 19:36:36 +00:00
messju
5a37e025ae moved setting of a default resource_base_path from
Smarty::_parse_resource_name() to Smarty::_fetch_resource_info()

this shouldn't affect anything, since all calls to
_parse_resource_name() that are not done from within
_fetch_resource_info() all pass their own resource_base_path
2004-03-18 07:05:29 +00:00
messju
d271bced39 removed '.' from the list of default resource_base_paths in
_parse_resource_name()

this should only affect _parse_resource_name() for templates, not for
php-resources and not for config_files. the latter pass two their own
resource_base_path.
2004-03-17 15:32:10 +00:00
messju
2b341888a3 simplified Smarty::clear_all_cache(); 2004-03-15 14:50:42 +00:00
messju
725da561e5 fixed little bug that prevented plugins filepaths that are found in
php's include_path (and not in one of the plugins_dirs) from being
cached in the internal plugins-filepath-cache
2004-03-11 18:16:29 +00:00
messju
077b7e7865 _parse_resource_name() returned true on non-existant absolute
paths. This caused a warning on _fetch_resource_info() when used in
conjunction with template_exists(). It should be fixed now without
negative effects.
2004-02-24 22:23:13 +00:00
messju
2c2c8b12b9 smarty_resource_*_secure got &$smarty passed errornously as 3rd
parameter and not as 2nd. this is fixed.
2004-02-24 00:10:55 +00:00
messju
d02633999c fixed handling of integer-attributes 2004-02-23 23:17:19 +00:00
messju
fff19de349 updated version to 2.6.3-dev 2004-02-23 23:14:40 +00:00
messju
c3c3430e71 removed notice on html_select_date with the month_empty-attribute 2004-02-22 23:29:08 +00:00
messju
4610c06d24 removed 2 notices of undefined vars (thanks Cit) 2004-02-22 23:18:30 +00:00
mohrt
cf52c81e0a change some info in headers, remove fluff 2004-02-17 15:52:02 +00:00
messju
0548fee520 correctly handle partially empty dates (like "2004--" or "-12-"). 2004-02-13 23:38:08 +00:00
messju
b474404b97 YES and NO should not be booleanized inside triple-quotes in a
config-file. this behaviour changed by accident in 2.6.1 and is now
reverted to pre-2.6.1 behaviour
2004-02-12 11:28:50 +00:00
messju
44e8612db1 fixed slurping of a the next line following a triple-quoted value in a
config-file
2004-02-10 22:58:49 +00:00
messju
ceea2e18d5 avoid @-operator for handling empty lines in Config_File.class.php 2004-02-07 21:15:29 +00:00
messju
7703839dbb removed two notices from Smarty_Compiler::_parse_is_expr()
(thanks shuther!)
2004-02-07 20:55:27 +00:00
messju
ef24ac0a3f changed default for use_sub_dirs to false 2004-02-07 20:29:20 +00:00
messju
7e6807b7e5 removed notice of undefined variable. (thanks shuther!) 2004-02-07 20:15:45 +00:00
messju
607cf5d0f4 added file and line-number-information to error-messages regarding
assigned objects an an error messages regarding modifiers with
security.
2004-01-29 10:38:12 +00:00
messju
0f223e3e18 removed use of temporary var $_params in compiled code of block-plugins 2004-01-27 23:00:26 +00:00
messju
aa2a705361 fixed quoting of values in smarty_function_popup() 2004-01-27 22:55:41 +00:00
messju
53baf8295a Smarty_Compiler::_syntax_error() uses Smarty::_trigger_fatal_error() now instead of the trigger_error()-function 2004-01-25 15:39:10 +00:00
messju
0e6224fc04 Smarty::_trigger_fatal_error() uses Smarty::trigger_error() now,
instead of the native trigger_error()-function
2004-01-25 15:36:05 +00:00