Simon Wisselink
29dd621b53
Add some guidance on upgrading from v3 to v4
checkout
v4.4.0
2024-02-26 14:46:35 +01:00
Simon Wisselink
de1bc77f7f
Prevent deprecation notices for implode, json_encode and substr modifiers
...
* Prevent deprecation notices for implode, json_encode and substr modifiers.
* unit tests
2024-02-26 14:33:47 +01:00
Simon Wisselink
326b2da8da
Fix incorrect compilation of expressions when escape_html=true ( #932 )
...
Fixes #930
2024-02-05 14:37:52 +01:00
Simon Wisselink
e0cbbdf6ea
Update php version number in docs
v4.3.5
2024-01-23 11:47:54 +01:00
Simon Wisselink
b4bbc17f1c
Add PHP8.3 support for Smarty 4.3. ( #927 )
...
See #925
2024-01-23 11:45:13 +01:00
Simon Wisselink
6e067ed327
Add unit tests to clarify current behavior
2023-09-21 23:50:10 +02:00
Simon Wisselink
3931d8f54b
Merge branch 'release/4.3.4' into support/4.3
v4.3.3
v4.3.4
2023-09-14 12:59:08 +02:00
Simon Wisselink
d8c1dfe56e
version bump
2023-09-14 12:59:07 +02:00
Simon Wisselink
6887e55ded
Merge branch 'release/4.3.3' into support/4.3
2023-09-14 11:00:40 +02:00
Simon Wisselink
642fd69fea
version bump
2023-09-14 11:00:38 +02:00
Simon Wisselink
17a7d6fb5b
Fix release-script to user support-branch
2023-09-14 11:00:08 +02:00
Simon Wisselink
b96a5c3953
version bump
2023-09-14 10:57:44 +02:00
Simon Wisselink
2ff66e0fcc
Fix use of negative numbers in math equations. ( #904 )
...
Fixes #895
2023-09-14 10:38:53 +02:00
Simon Wisselink
d6c4274822
Fix phpdoc.
...
Fixes #897
2023-09-13 22:10:36 +02:00
Simon Wisselink
a3cbdc46fb
Fix strip_tags modifier for falsy input. ( #893 )
...
Fixes #890
2023-08-04 22:40:19 +02:00
Simon Wisselink
1d9cda2be3
Merge branch 'release/4.3.2'
v4.3.2
2023-07-19 12:27:36 +02:00
Simon Wisselink
edfd4c91da
version bump
2023-07-19 12:27:34 +02:00
Simon Wisselink
4434e128c6
muteUndefinedOrNullWarnings() now also mutes PHP8 warnings for undefined properties ( #891 )
2023-07-19 12:27:17 +02:00
Jon
19df91b692
Remove md5 modifier from debug.tpl ( #871 )
...
* Remove `md5` modifier from debug.tpl
Replaced with a regular function call.
See https://github.com/smarty-php/smarty/issues/813
* Move `md5()` in debug.tpl to PHP
---------
Co-authored-by: jonathan <jonathan@devrygreenhouses.com >
2023-04-30 23:25:39 +02:00
Simon Wisselink
e28cb0915b
Merge branch 'release/4.3.1'
v4.3.1
2023-03-28 21:47:03 +02:00
Simon Wisselink
fe7817c301
version bump
2023-03-28 21:47:01 +02:00
Simon Wisselink
685662466f
Merge branch 'js_escape_security_fix'
2023-03-28 21:46:46 +02:00
Simon Wisselink
71d113550c
Add changelog
2023-03-28 21:43:36 +02:00
takaram
5512d64521
Upgrade actions/checkout and actions/cache ( #870 )
2023-03-25 15:38:18 +01:00
Simon Wisselink
2038890f19
Changelog
2023-03-24 12:19:40 +01:00
Simon Wisselink
e75165565e
Implement fix and tests
2023-03-24 12:19:34 +01:00
Simon Wisselink
3d2a8dc5fd
Update SECURITY.md with correct version info.
2023-02-23 22:44:34 +01:00
Simon Wisselink
2764816407
Add missing dirs
2023-02-23 22:30:15 +01:00
Simon Wisselink
801d186ea4
CompileCheck test and extra note on how it works in docs
2023-02-23 22:17:06 +01:00
Simon Wisselink
09d26579ce
Some additional unit tests
2023-02-23 22:06:37 +01:00
Simon Wisselink
badcae6e0c
Finished improving designers docs
2023-02-06 14:42:31 +01:00
Simon Wisselink
694ff1b733
Improved another chunk of the designers docs
2023-02-06 10:40:00 +01:00
Simon Wisselink
1e0d25638e
WIP improving the docs
2023-02-05 23:14:10 +01:00
Simon Wisselink
51ed0d6791
fixes to docs
2023-02-03 22:31:59 +01:00
Simon Wisselink
c94d3ddafa
multiversion mkdocs config
2023-02-03 22:29:08 +01:00
Simon Wisselink
5fdcb3c6fa
Fix error in docs on prepend/append. Fixes #818 .
2023-01-31 11:24:20 +01:00
Adrien Poupa
5988116c81
PHP 8.1 deprecation warnings on null strings in modifiers ( #834 )
2023-01-17 00:24:23 +01:00
Simon Wisselink
73ff8fd3d0
Fix unit tests that broke because now is now in 2023
2023-01-13 22:19:17 +01:00
Simon Wisselink
d900a0ef4a
Added variable scope test for multi-level extends resource
2023-01-13 19:23:12 +01:00
Simon Wisselink
a34ee98e21
Allow dereferencing of non-objects accross all supported PHP versions ( #832 )
...
Fixes #831
2022-11-24 18:44:19 +01:00
Simon Wisselink
4d1cf61bb8
Simplify test running to support all phpunit cmdline options
2022-11-24 18:24:17 +01:00
Simon Wisselink
c0a6b641bf
Treat undefined vars and array access of a null or false variables equivalent across all supported PHP versions ( #830 )
...
* Added test to see what changed exactly
* Treat undefined vars and array access of a null or false variables
equivalent across all supported PHP versions
* Removed 2 tests that produce inconsistent results between PHP7.x versions.
* Fix regex matching for slightly different error message for php7.1
2022-11-24 09:43:51 +01:00
Simon Wisselink
044647bd71
Also mute php7 notices for undefined array indexes when muteUndefinedOrNullWarnings is activated. ( #829 )
...
Fixes #736
2022-11-23 23:26:24 +01:00
Simon Wisselink
c02e9e135e
Merge branch 'release/4.3.0'
v4.3.0
2022-11-22 22:47:32 +01:00
Simon Wisselink
67ab8f6879
version bump
2022-11-22 22:47:30 +01:00
Simon Wisselink
773b3b4b7c
Change file permissions for directories and respect umask for written files. ( #828 )
...
Fixes #548
Fixes #819
2022-11-22 22:31:54 +01:00
Hunman
613c5d691c
Make SmartyCompilerException play nicer with error handler libraries ( #782 )
...
* Make SmartyCompilerException play nicer with error handler libraries
Added a new constructor, which accepts a filename and a line number too
(similar to ErrorException, except no severity parameter)
This way error handlers will display the correct file's correct line as
the source of the exception, instead of the template's line in the
core of the parser (php file)
Kept the __toString() method, but removed $source, $desc, and $template
* Revert the breaking changes
2022-11-22 21:58:13 +01:00
Progi1984
c016895166
PHP8.2 compatibility ( #775 )
...
* PHP8.2 compatibility
* PHP8.2 compatibility : Fixed unit tests
* PHP8.2 compatibility : Replace ENT_COMPAT by ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401
* PHP8.2 compatibility : Remove deprecated utf8_decode
* PHP8.2 compatibility : Remove HTML-ENTITIES parameter
* Removed some unused code for clarity, updated the changelog.
* More concise escape implementation and unit test to cover both modifierplugin and modifiercompiler.
* Fix htmlall unescape of quotes without mbstring too
Co-authored-by: Simon Wisselink <s.wisselink@iwink.nl >
2022-11-22 21:22:57 +01:00
Andrew Dawes
f81720941c
Fixed several typos and grammar errors ( #821 )
2022-10-22 22:08:38 +02:00
Simon Wisselink
1ff79c6c38
Update changelog
...
Closes #816
2022-09-27 12:24:08 +02:00