1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-17 20:58:30 +01:00

18 Commits

Author SHA1 Message Date
Cameron
55980a29a8 Generated PHPDoc for all classes in e107_handlers where one was missing. toNumber() updated to always return int or float. 2022-04-04 10:54:24 -07:00
Nick Liu
20882920a0
Fix all PHP 8.1 test failures
* `strftime()` has been replaced with a polyfill based on `DateTime`.
* Explicit type casts/assertions added where required by PHP 8.1
* `filter_var(…, FILTER_SANITIZE_STRING)` replaced with `strip_tags()`
  or HTML entity encoding of quotation marks, depending on a guess of
  what the intended "sanitization" was
* `http_build_query()` usage type mismatches fixed
* Removed usages of the `FILE_TEXT` constant
* To avoid breaking PHP 5.6 compatibility (function return types),
  `e_session_db` no longer implements `SessionHandlerInterface`.
  Instead, the alternative non-OOP invocation of
  `session_set_save_handler()` is used instead to apply the session
  handler.
* The shim for `strptime()` still calls the native function if available
  but now suppresses the deprecation warning.

* `e_db_pdo` explicitly asks for `PDO::ATTR_STRINGIFY_FETCHES` to
  maintain consistent behavior with past versions of PHP.
* `e_db_mysql` explicitly sets `mysqli_report(MYSQLI_REPORT_OFF)` to
  maintain consistent behavior with past versions of PHP.

* Removed pointless random number generator seed from `banner` plugin
* Workaround for `COUNT(*)` SQL query in
  `validatorClass::dbValidateArray()` without a proper API for avoiding
  SQL injection
2021-09-04 15:06:19 +02:00
Cameron
bc1340af12 Forced WebP caching fix. 2021-07-12 12:27:29 -07:00
Cameron
c4f76c3687 Issue #4270 - perform all webp conversion checks within e_thumbnail class. WebP conversion now works with SEF media URLS. 2021-06-18 09:31:45 -07:00
Moc
4ef740674c
Update placeholder image link
Apparently placehold.it has been replaced with placeholder.com
2021-04-17 14:04:52 +02:00
Cameron
39691620ae wysiwyg test. 2020-12-13 07:40:41 -08:00
Cameron
f605ddc552 Code optimization and cleanup. 2020-12-10 15:52:48 -08:00
Cameron
758137daff Remove debug info logging. 2020-12-09 14:42:04 -08:00
Cameron
465cc393cf Code cleanup 2020-12-09 14:08:28 -08:00
Cameron
ddb9c801af Issue #4270 Disable automatic WebP conversion in admin area. 2020-12-09 11:22:03 -08:00
Cameron
a094a8fb73 Thumbnailer: Added option for on-the-fly conversion to WebP format. Example: toImage($src, ['w'=>'type'=>'webp']); 2020-12-08 09:10:26 -08:00
Cameron
005bff7e59 Code cleanup. Removal of deprecated utf8 classes. 2020-12-08 07:29:17 -08:00
Cameron
ca1df9d4f3 Issue #4270 - WebP support. 2020-12-07 10:48:12 -08:00
Cameron
111cad6307 Fix for admin-ui preview image size. 2020-12-07 09:24:49 -08:00
Cameron
b4596dda47 Old PHPThumb class removed. (Replaced by Intervention) 2020-12-06 11:33:09 -08:00
Cameron
d564c5399c Intervention image manipulation library added. 2020-12-06 10:53:46 -08:00
Cameron
1f38b3b3dd Thumbnail tests added for cropping and PNG files. 2020-12-06 08:03:03 -08:00
Cameron
68a0c8940c Image thumbnail processing moved to its own class. Thumbnail test added. 2020-12-05 18:23:45 -08:00