1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 17:14:42 +02:00

19 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
2eebd4f0ca e_file_inspector: No longer conflate insecure files and cached old files
Related ticket: https://github.com/e107inc/e107/issues/4312
2021-01-02 01:07:40 +01:00
Nick Liu
3587075b96 Fix phpDocumentor 3 syntax errors 2020-10-06 01:15:51 -05:00
Cameron
a908c9fc8e File inspector - improved detection of old files. 2020-05-20 13:48:54 -07:00
Cameron
0ed1a9ae5f Log deprecated files during fileinspector scan and prompt to delete these files in admin.php when the log contains data. 2020-05-20 13:31:09 -07:00
Nick Liu
82587d8708 core_image.phar was being looked up at the wrong path
Correcting a regression from e7a79edcd0

Fixes: #4164
2020-05-13 16:14:08 -05:00
Cameron
e7a79edcd0 Moved core-image to e107_system/ and renamed to core_image.phar 2020-05-11 13:28:01 -07:00
Nick Liu
a04db4e2c8 Hotfix: Don't fatal error if core_image.php is corrupt 2020-03-29 15:56:33 -05:00
Nick Liu
07f5bebab5 Code cleanup for automated release builds
Low-hanging resolutions for Code Climate
2020-03-27 21:57:51 -05:00
Nick Liu
03dfb5cce3 Implemented insecure file check in File Inspector
Bugs fixed:

* Security failure status is now prioritized in
  file_inspector::getStatusForValidationCode()
* File Inspector list view now supports filters
2020-03-27 17:06:16 -05:00
Nick Liu
b4f55049f8 File Inspector now shows the old e107 version of core files
Bugfixes related to this change:

* e_file_inspector: During validation, the checksum is now calculated,
  even if the file is old.
* e_file_inspector_json: Strip the "v" from the beginning of version
  numbers in the database to make them proper PHP-standardized versions.
2020-03-27 17:06:16 -05:00
Nick Liu
00d171473e Validation bits improvement for e_file_inspector
Now File Inspector detects old files regardless of their hash value.
2020-03-27 17:06:15 -05:00
Nick Liu
6095c94de3 Minimum viable rewrite of File Inspector frontend 2020-03-27 17:06:14 -05:00
Nick Liu
b425b4e45d CoreImage: API rework 2020-03-27 17:06:14 -05:00
Nick Liu
b8ed70693f Restored JSON core image generator for performance
PDO SQLite was performing unacceptably poorly.
Let's just load the entire integrity image into RAM…
2020-03-27 17:06:13 -05:00
Nick Liu
e10c3230f4 Bugfixes and performance optimization for e_file_inspector
- MOD: e_file_inspector::validate() will no longer bother with
       checksumming a file if the database hash is not present for the
       requested version.
- MOD: Better check for e_file_inspector::VALIDATED_DETERMINABLE
- MOD: e_file_inspector::VALIDATED_UPTODATE will now pass if there is no
       checksum in the database and no calculable checksum in the real
       file.
- FIX: Better documentation for
       e_file_inspector_interface::VALIDATED_DETERMINABLE
- FIX: Use the same bit for e_file_inspector::VALIDATED for a full
       validation check in e_file_inspector::validate()
2020-03-27 17:06:12 -05:00
Nick Liu
0494000356 Rewrote e_file_inspector validation constants
Now uses bit flags, as the previous approach of "overriding" the
validation code may hide information.  Previously,
e_file_inspector::VALIDATION_FAIL could be overridden by
e_file_inspector::VALIDATION_OLD.  Now, e_file_inspector::VALIDATED_HASH
and e_file_inspector::VALIDATED_UPTODATE provides information about
both.
2020-03-27 17:06:12 -05:00
Nick Liu
0e7ad8a1b0 Rewrite e_file_inspector implementation: Use SQLite phar 2020-03-27 17:06:11 -05:00
Deltik
20dbdefb77 Began work on the core_image.php reader 2020-03-27 17:06:10 -05:00