1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-16 12:36:26 +02:00

57 Commits

Author SHA1 Message Date
06f697abf5 Issue #5482 Session issue affecting themes manager and possibly other areas. 2025-04-28 10:30:21 -07:00
46696f2124 Issue #5482 Session handling of array data. 2025-04-28 08:59:28 -07:00
fa277fc3c9 Issue #5443 PHP 8.4 fix 2025-04-22 11:49:46 -07:00
acb0c595b3 Issue #5443 Fix for session_set_save_handler(): Providing individual callbacks instead of an object implementing SessionHandlerInterface is deprecated 2025-04-17 04:16:27 -07:00
412b0b2efe Reducing e_SECURITY_LEVEL to 3 with disable ValidateRemoteAddr. 2022-04-04 14:47:53 -07:00
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
fd42d2325f Issue #4657 - Improved handling to prevent multiple sessions running on the same user account. 2022-01-13 11:18:31 -08:00
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
d8f9a96dea Issue #4520 Possible fix for session duration. (testing needed) 2021-06-18 09:44:26 -07:00
aee77a102f Set profanity list limit to 1000. (Could reduce performance)
Fix for comment template. Prevent secureImage from buffering too many keys.
2021-02-14 07:02:09 -08:00
72c54371cc e107::getSession()->set will now accept multi-dimensional key format. Test added. Form-handler PHP8 fix. 2021-02-08 11:59:04 -08:00
2337b075a8 Fixes #4346 - TinyMce parser issue. Hide side-panel help icon on legacy admin theme. 2021-02-05 18:31:54 -08:00
7279e0273e Valid login event added. Session conflict fix. Session test added. Featurebox tree() fix. 2021-01-14 10:31:51 -08:00
7dfac0dcfa Issue #4299 - PHP8 compatibility fixes. 2020-12-25 10:23:56 -08:00
3f8e043998 Replaced e107::getAdminLog() with e107::getLog(). e107::getAdminLog() will continue as a deprecated alias. 2020-12-22 09:36:02 -08:00
f5153bf640 Updating of deprecated method usage. Removal of old files. Log tests added. 2020-12-18 09:39:02 -08:00
7439d599f8 Issue #4176 - Incremental introduction of database sessions - Experimental (work in progress) 2020-06-02 13:43:21 -07:00
5d982561c3 Fixes #4113 - Enable session file garbage collection 2020-04-18 14:10:02 -05:00
4441d6e666 Guard e_session::setDefaultSystemConfig() to dedent function 2020-04-18 14:05:16 -05:00
4321c1b944 Null coalescing for $_SERVER keys in session_handler.php
Resolves CLI-invoked E_NOTICE in:
* e_session::getValidateData()
* e_core_session::challenge()
2020-01-17 15:54:12 +01:00
fa6852ea8e Revert session handler change. 2019-06-16 13:44:03 -07:00
6b73f6d198 Fix for session issue. 2019-06-16 12:44:00 -07:00
d4134c7f89 PHP 7.3 fixes. 2019-02-07 17:12:23 -08:00
9726a70d2d Issue #3076 - session handler. 2018-03-19 11:20:35 -07:00
968965e561 Removed session debug info 2018-03-10 19:23:06 -08:00
15345afb89 #1517 Tracing of the 'unauthorized access' issue. 2018-03-09 17:52:14 -08:00
f05a0fd777 Set secure cookie when SSL active. 2018-01-13 12:38:32 -08:00
e35259afe9 Multisite navigation support (when multisite plugin installed) 2017-10-11 18:57:32 -07:00
775060b94f Remove debug info 2017-01-12 12:15:08 -08:00
e2bc81f654 Issue #1245, #1523 Possible fix for servers using memcache as a session handler. 2017-01-12 12:06:25 -08:00
8af3a0780a Pref for session time added. Modification of PRFLAN_60 and PRFLAN_61 2016-12-28 15:03:06 -08:00
465a1309af Session clear() with no key will now reset data array. Fix for nav-bar avatar alignment 2016-12-10 10:47:14 -08:00
17382b25ac Input filter fixes. 2016-08-19 16:13:38 -07:00
ad0bc1376d Issue #1349 MySQL class fixes and install.php corrections. 2016-02-11 20:57:30 -08:00
84c4c8607d Issues #1254 #1208 #1211 #1245 Option to define the session.save_path (relative to e107's root directory) in e107_config.php: define('SESSION_SAVE_PATH','relative-path-to-folder');
example: define('SESSION_SAVE_PATH','../_sessions/');
Use the PHPInfo page in the admin area to check it has worked. Will only work if the path to the folder exists. session.hash_function is now set to sha512 by default when the security level is BALANCED or higher.
2015-11-30 14:30:37 -08:00
e576370e57 Remove some references to deprecated functions/methods. 2015-02-14 23:34:15 -08:00
8c7e7f77de Admin-UI: Improved styling options for inline editing on boolean elements. 2015-01-20 20:57:20 -08:00
c4bfa03be1 Fixes #495, #485, #486, #487 - Browser cache issues. 2014-05-24 20:40:51 -07:00
67f48571f4 Fix for session value-loss issue. 2013-11-05 14:15:12 -08:00
29f74508c2 Forum quick-reply fix. 2013-06-19 19:54:29 -07:00
865adaa99f Issue #343 partial fix - needs JS sorting properly, but should now be possible to log in using CHAP. CHAP didn't work at all for admin login. Also need to change challenge value on every page reload without losing track. 2013-06-09 20:53:44 +01:00
73e095f14f May help session subdomain issues. 2013-06-06 12:50:43 -07:00
5af8208c7e Enable logging by default. 2013-06-02 14:49:26 -07:00
693b5bea75 Improved logging options and file-naming. 2013-06-01 04:36:58 -07:00
8d94fa8b23 Possible fix for 'Anonymous' showing in logs, when admin is logged in. 2013-05-31 18:36:43 -07:00
bfb687dfd5 Session quick fix. Image resizing etc. 2012-09-03 23:02:45 +00:00
c7c9bfe517 Increased session to 24 hours (prevent being logged-out every hour).
Recursive chmod added to Database Tools for correcting folder and file perms.
2012-08-05 10:06:01 +00:00
9937a9c0e2 Disabled session-log and IP was not being stored at signup - fixed. 2012-08-01 21:03:07 +00:00
a2dd8c47fd more session options from site preferences (not added to the preference UI yet) 2012-02-20 14:55:16 +00:00
600e3aa12f e-token check method returns now boolean; comments e-token check refined 2011-10-24 06:30:31 +00:00