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

56 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
c94722e00b
#4564: Un-break validatorClass::dbValidateArray() counter
I forgot an `AND` in the `WHERE` clause for the `e_db_pdo`
implementation of `validatorClass::dbValidateArray()`.

Fixes: https://github.com/e107inc/e107/issues/4564
2021-09-13 12:41:26 -05: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
68ef32204e Fix for early PHP versions. 2020-12-26 09:57:03 -08:00
Cameron
f6cdb9125c Issue #4299 Fixes the "07 - Display name - Value not allowed" validation error during user registration. 2020-12-26 09:28:02 -08:00
Cameron
7989ebfc72 Installation fix. 2020-12-26 08:02:34 -08:00
Cameron
601df26d51 Code optimization for speed and reduced memory usage. 2020-12-20 11:50:10 -08:00
Cameron
5b82c292b1 Code cleanup 2020-12-18 19:55:12 -08:00
Cameron
450b35f017 Removed redundant closing tags. 2020-06-05 11:34:17 -07:00
Achim Ennenbach
d01a97816f refactoring toNumber() into e_parse class 2018-05-04 19:27:00 +02:00
Cameron
02e80f50de Parser cleanup 2017-09-19 16:19:39 -07:00
Cameron
ee57ba2275 Remote avatar validation fix. 2015-08-22 00:15:05 -07:00
Cameron
d3fbef7840 Issue #1114, Fixes #1041 - Mail validation issues. Removed problematic remote-server email-check feature. 2015-08-21 12:53:09 -07:00
Cameron
0557e770eb Removed debug info. 2015-05-24 12:12:24 -07:00
Cameron
e576370e57 Remove some references to deprecated functions/methods. 2015-02-14 23:34:15 -08:00
Cameron
e36b68933c Usersettings error message styling and general cleanup. 2015-01-27 11:32:09 -08:00
SecretR
1d9fe175fb Validator parse error fix 2013-10-31 15:20:21 +02:00
Cameron
1b3e70f8fd More language-file cleanup (sprintf removal) 2013-10-29 18:41:02 -07:00
Cameron
1500effbd7 Avatar path corrections. 2013-04-19 22:50:41 -07:00
SecretR
30d922cadf Fixes #140: Sitelinks: Inline editing broken 2013-03-08 16:00:00 +02:00
SecretR
ed648b9ea4 UI data 'comma' converted to type;
model supports data type 'set' and 'enum' now;
'userclasses' type works as expected;
#9 related, testing required
2012-12-17 16:57:42 +02:00
CaMer0n
35fe774435 XSS fix 2012-08-10 09:13:01 +00:00
secretr
a30c2941da User extended fields validation working again on signup 2012-06-02 14:36:22 +00:00
secretr
b36ff51875 leftover debug 2012-04-03 14:39:19 +00:00
secretr
4e131c2c50 refined validator message building 2012-04-03 14:37:48 +00:00
secretr
f478b4274b validator isValid setter 2012-03-16 14:18:55 +00:00
berckoff
079ef5b63d Validator class: changed logics for exact word match -> exclamation mark is supported only in the end of the word. (suggested by SecretR to comply with core) 2012-01-13 13:15:23 +00:00
berckoff
46759d8b31 Validator class: added check for exact match on forbidden user names (in use with !), fixed statically called methods of the validator class generate warnings; Added new LAN for EXACT_MATCH error on forbidden usernames. 2012-01-13 13:06:11 +00:00
e107steved
6e50b07a15 Bugtracker #5176 - path for uploaded avatars not calculated correctly 2011-03-14 20:54:56 +00:00
secretr
2945d24e0c fixed float numbers troubles (caused by system localization) 2011-01-04 12:10:47 +00:00
secretr
eb057e6492 validator - regexp case added (regex alias) 2010-12-17 15:23:00 +00:00
secretr
d9527349ad Admin UI minor improvements; cleanup - warnings removal; various minor bugfixes 2010-10-30 15:34:48 +00:00
secretr
4d0be39938 EONE-62 (New Feature): More work, getting data should work fine now, still work in progress 2010-05-05 15:05:32 +00:00
secretr
6d57b1f5bf Validator 'enum' type added 2010-03-01 10:20:25 +00:00
secretr
4fecfffddd svn keywords added (v0.8) 2010-02-10 18:18:01 +00:00
secretr
ab26b37476 validator handler - temporary BC till '-' separator is replaced with ':' separator (min:max range), OO related improvements 2010-02-09 13:34:23 +00:00
secretr
3dc919762e Validator handler - 'min-max' format changed to 'min:max' (negative numbers support) - COULD PRODUCE BUGS; validator is still work in progress 2010-02-07 13:55:38 +00:00
secretr
a4e8e0990a Validator - language file and handler details 2010-02-07 12:13:43 +00:00
secretr
92d926279c Text parser - usubstr() method fix (always returned empty string), utf8 parser methods lowercased 2010-01-12 13:11:48 +00:00
CaMer0n
1377b23532 Fix copyright info. 2009-11-18 01:06:08 +00:00
secretr
96114a36fb admin UI: more improvements and bugfixes 2009-11-17 15:23:01 +00:00
marj
f7f9811de6 PHPdoc fix 2009-11-17 14:50:37 +00:00
CaMer0n
fbbf2f8f61 e_FILE.'public/' replaced with e_UPLOAD 2009-11-07 02:17:02 +00:00
secretr
7f15da0b74 Admin tools - more work 2009-10-30 17:59:32 +00:00
secretr
ec93404015 Introducing e_model_admin handler: automated tasks as validate, sql queries, handle posted data, more to come (work in progress); Various imporvements/fixes (core handlers) 2009-10-20 16:05:03 +00:00
secretr
a4231c70f3 Introducing e_validate class, awaiting: further e_model - db - e_form communication, user model, etc. work in progress 2009-10-19 16:13:29 +00:00
e107steved
6d14c60e84 Handle case where an email address is optional, plus better error reporting 2009-10-06 18:58:08 +00:00
marj
77e4edfb54 ctype_*() replacement 2009-08-08 23:09:08 +00:00
secretr
5c76acc91d Validator handler: typos, debug info removed, small addition (default rule) 2009-07-31 16:14:51 +00:00
e107steved
6aa6fd68b4 Various bug fixes, bug creations, tweaks and changes 2009-06-12 20:41:35 +00:00