Commit Graph

460 Commits

Author SHA1 Message Date
messju
ad79be90a0 removed use of get_include_filepath() inside
get_auto_filename(). thanks go to c960657
2004-07-01 15:48:40 +00:00
messju
8c83b9e88b enhanced error-reporting for {foreach} 2004-07-01 15:39:34 +00:00
messju
cc08082d67 fixed handling of digits inside tagnames. this problem slipped into
the regexps by adding support for numeric contants next to string
constants as variables.
2004-07-01 12:20:43 +00:00
messju
b43d689706 fixed escaping of backslashes in Smarty_Compiler::_quote_replace() 2004-06-27 19:37:34 +00:00
mohrt
1ef80b257e update NEWS file with version number 2004-06-16 13:54:48 +00:00
mohrt
7b260f7b83 added escapement of '</' to javascript escaping 2004-06-09 14:54:31 +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
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
mohrt
16530ef589 add 'mail' attribute to escape modifier 2004-04-30 14:50:17 +00:00
messju
6c25b0951b added entry for numeric constants 2004-04-16 10:33:30 +00:00
messju
20b4be1048 added escape type "decentity" to smarty_modifier_escape() 2004-04-16 08:40:42 +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
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
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
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
8485763d2e fix handling of integer values like width and delay im
smarty_function_popup()
2004-02-23 23:19:08 +00:00
mohrt
f8c32146d2 add header 2004-02-17 15:54:22 +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
ef24ac0a3f changed default for use_sub_dirs to false 2004-02-07 20:29:20 +00:00
messju
aa2a705361 fixed quoting of values in smarty_function_popup() 2004-01-27 22:55:41 +00:00
messju
88cf42b0e6 fixed handling of hidden sections in Config_File 2004-01-22 23:47:46 +00:00
messju
cf0ee7bdd8 added handling of resources for {config_load} 2004-01-21 17:21:26 +00:00
messju
07b151bf3e fixed bug when using arrays with tr_attr and td_attr in {html_table} 2004-01-19 12:47:59 +00:00
mohrt
b9450d2cf6 add unit testing 2004-01-16 22:14:51 +00:00
mohrt
51e1064d69 update version numbers, add initial unit test directory 2004-01-16 22:12:08 +00:00
messju
9b032e1ea4 renamed $smarty->tpl_rror_reporting to $smarty->error_reporting
"tpl_" is a bit redundant here (it's a TemPLate-engine overall :)
2004-01-16 20:01:35 +00:00
messju
ea53ef5a58 fix: $smarty->security is now correctly handled
minor optimizations:
   core/core.is_secure.php is only included when needed
   $dpi_default is only determined when needed
2004-01-15 15:00:09 +00:00
messju
6950893505 added caching of requested paths to smarty_core_assemble_plugin_filepath() 2004-01-08 13:13:04 +00:00
messju
73995af1e9 fix handling of comments inside {php}- and {literal}-blocks 2004-01-08 12:47:12 +00:00
messju
448114faeb fixed bug handling triple-quotes in config-files 2004-01-06 09:21:00 +00:00
messju
077bb151ad made $SCRIPT_NAME available again
changes default for request_use_auto_global to prefer autoglobals
2003-12-27 09:41:43 +00:00
messju
e335832f62 readded default_modifiers. who removed that? 2003-12-27 09:25:25 +00:00
mohrt
ae3b538314 add portuguese docs 2003-12-23 15:53:39 +00:00
messju
331c2ef286 allow single-digit days and months without smarty_make_timestamp()
this makes dates like "1968-11-6" work correctly since no strtotime()
is involved

add warning when unknown parameter is passed
2003-12-17 09:32:30 +00:00
messju
4fe0af5398 fix headers sent erroneously with cache_modified_check and fetch() 2003-12-16 09:05:04 +00:00
mohrt
5b14130cef fix config_load filepath bug 2003-12-12 14:38:42 +00:00
mohrt
aa8f02c429 fix 'is even by' and 'is odd by' logic 2003-12-11 19:39:02 +00:00
messju
e157a65085 added day_empty, month_empty, year_empty and all_empty attributes
to pass an undefined date use {html_select_date time="--" ...}
2003-12-10 16:43:39 +00:00
boots
9431011adb Added table to language.function.if to describe qualifiers 2003-12-10 08:21:57 +00:00
messju
aa2ee3cd66 fix bug when comparing array-keys to "selected" in html_options and
html_checkboxes

in_array() uses "strict" comparason now.
2003-12-09 19:38:25 +00:00
messju
1dd2246d8a add better checks for correctly nested tags when compiling 2003-12-08 10:44:21 +00:00