Commit Graph

4913 Commits

Author SHA1 Message Date
Simon Wisselink
44e00cf7c0 muteUndefinedOrNullWarnings() now also mutes PHP8 warnings for undefined properties 2023-07-19 12:05:45 +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
Simon Wisselink
254b5cabee Dropped remaining references to removed PHP-support in Smarty 4 from docs, lexer and security class. 2022-09-27 12:21:01 +02:00
Raimondas Rimkevičius
1b556c7077 Use __DIR__ instead of dirname(__FILE__) (#817) 2022-09-27 12:03:34 +02:00
Simon Wisselink
4550fc0339 Using PHP functions as modifiers now triggers a deprecation notice (#814)
Fixes #813
2022-09-23 00:09:00 +02:00
Scott Newton
4fc39d59a5 Bug fix for underscore in template name (#581)
* Corrected bug #578, where underscore characters were being stripped from template names when using a custom resource
* Increased the maximum template name length to 127 characters when using a custom resource
2022-09-22 23:56:18 +02:00
Alec Smecher
0fb29024e7 #155 Adapt Smarty upper/lower functions to be codesafe (e.g. for Turkish locale) (#586)
* Implemented locale safe strotoupper, strolower and ucfirst functions for translating user string to filenames etc.

Fixes #155

Co-Authored-By: Alexkurd <7689609+Alexkurd@users.noreply.github.com>
2022-09-22 23:32:55 +02:00
Simon Wisselink
612bd3f657 Fixed PHP8.1 deprecation errors in strip_tags (#803) 2022-09-22 14:55:20 +02:00
Simon Wisselink
9eea30ec1e Removed now superfluous phpunit.sh 2022-09-22 14:44:45 +02:00
Simon Wisselink
ea95e8b047 Re-organize all testrunners to use the same script(s). (#812) 2022-09-22 14:31:49 +02:00
Simon Wisselink
474138fd7e Updated changelog 2022-09-22 14:31:01 +02:00
Mathias
b91c04bfcf Fixed PHP8.1 deprecation errors passing null to parameter in trim (#807)
Fixed a PHP 8.1 deprecation error:  trim(): Passing null to parameter #1 ($string) of type string is deprecated in cacheresource_keyvaluestore.php on line 247 and in cacheresource_keyvaluestore.php on line 431
2022-09-22 14:29:51 +02:00
Simon Wisselink
c53342c9fc Silence deprecation errors for strtime in PHP8.1 or higher
Fixes #672 (#811)
2022-09-22 14:11:36 +02:00
Simon Wisselink
f8a958cd53 Update changelog 2022-09-21 21:56:39 +02:00
Jonathan Stoll
45345e75ec Fix Variable Usage (#808)
Fix Variable Usage in Exception message when unable to load subtemplate
2022-09-21 21:54:41 +02:00
Simon Wisselink
bf7d6b8bd8 Include docs en demo in the releases.
Fixes #799
2022-09-20 22:45:16 +02:00
Simon Wisselink
32a11b34ea Added changelog 2022-09-18 17:18:32 +02:00
Storyxx
db80246b58 fix compilation for caching templates (#801) 2022-09-18 17:15:56 +02:00
Hypolite Petovan
d683641f90 Fix wrong indentation in libs/plugins/modifier.capitalize.php (#802) 2022-09-18 11:14:59 +02:00
Simon Wisselink
e2e68b3622 clean output buffer for Throwable instead of just Exception (#797)
Fixes #514
2022-09-14 13:47:36 +02:00