1
0
mirror of https://github.com/e107inc/e107.git synced 2025-01-29 10:38:08 +01:00

5405 Commits

Author SHA1 Message Date
Cameron
c7be6a57e8 Open-graph improvements in news. 2021-09-24 13:08:45 -07:00
Nick Liu
45bce2a7aa
#4572: e_form: No htmlspecialchars() on "other" attributes
Fixes: #4572

Discussion:
https://github.com/e107inc/e107/pull/4554#issuecomment-926113601
2021-09-23 16:12:52 -05:00
Cameron
171cac87b1 Admin-UI type=datestamp and batch=true was producing unexpected results in the batch filter. Now provides an option for setting the current date/time. 2021-09-23 12:37:30 -07:00
Cameron
45bb6c2f35 Custom meta-image option added to Pages. 2021-09-23 12:01:26 -07:00
Cameron
a8ec6435e5 Closes #4567 - jQuery 3 is now the default for the frontend of e107.
To use v2, add the following to e107_config.php: define('e_DEBUG_JQUERY', 2);
2021-09-23 11:02:43 -07:00
Cameron
94c5761893 Updated jQuery3 CDN URL. Reduced some scrollbar widths in admin area. Prevent multiple og:title entries. 2021-09-23 10:41:51 -07:00
Cameron
d0f8f348fe Removed cacheID from cached JS/CSS URLs - now automatically included within filename hash. 2021-09-15 19:25:10 -07:00
Cameron
4747ad3c6e
Merge pull request #4547 from Deltik/fix/4546
Deprecate `e_parse::toJS()`
2021-09-15 12:18:41 -07:00
Cameron
632f33526f Admin-ui: Fix for delete confirmation popup alert. 2021-09-14 14:15:30 -07:00
Cameron
48ace946f4 Bootstrap upgraded to v5.1.1 2021-09-13 18:05:35 -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
Nick Liu
f6d6d1b185
Deprecate e_parse::toJS()
`e_parse::toJS()`, documented with the description

> Convert text blocks which are to be embedded within JS

, does not protect strings from injections, which appears to be its
primary use.  Additionally, it performs multiple unrelated string
modifications:

* Replace Windows line breaks with a literal `\\n` (which would later be
  parsed as `\n` in JavaScript/JSON)
* Does not modify Unix line breaks (`\n`), which is inconsistent with
  the Windows line break behavior
* Removes HTML tags
* Replaces HTML entities as `htmlentities()` does

This method cannot be fixed because its usages are inconsistent.  Most
notably, some usages surround the method's output in single quotes while
others surround it with double quotes.  Strings cannot be JSON-encoded
without confounding quotation mark styles.

All core usages of `e_parse::toJS()` have been replaced with
alternatives, which are also documented in the method's DocBlock.

Fixes: #4546
2021-08-31 00:11:14 +02:00
Cameron
f173b59672 Closes #4539 2021-08-13 10:58:42 -07:00
Cameron
b994dd916d Bootstrap upgraded to v5.1.0 2021-08-13 10:03:24 -07:00
Cameron
32618817d1 Character counting display added to meta description on admin News and Page inputs. 2021-08-12 11:51:55 -07:00
Cameron
64e705ced0 {SITELINKS_ALT} fix and test. 2021-08-07 12:26:23 -07:00
Nick Liu
ecf6ab7acc
show_emessage("ALERT", …): JSON type enforcement for alert() usages 2021-08-07 18:50:14 +02:00
Nick Liu
7a04260b5f
#4299: Wrap even more potentially undefined constants
In:
* Admin-UI
* Forums
2021-07-21 20:23:06 +02:00
Cameron
389a76efe2 Fix for active nav detection while SEF URL in use. 2021-07-15 17:51:08 -07:00
Cameron
ebe9c8cf13 Precaution to avoid fatal error with some admin-ui configurations. Fontello preload code removed. (some cases may use FA instead) 2021-07-15 17:38:39 -07:00
Cameron
04576b9f79 Commented library preload code. 2021-07-14 12:20:57 -07:00
Cameron
099dffdfdd Allow theme to manually control navigation 'active' status with new method: e107::nav('active', [url match]); 2021-07-14 12:18:42 -07:00
Cameron
bc1340af12 Forced WebP caching fix. 2021-07-12 12:27:29 -07:00
Nick Liu
a9c2ae3823
Fix #4405: PHP 8 compatibility: redirection::checkMembersOnly()
To accommodate the change in behavior of strpos()

Fixes: https://github.com/e107inc/e107/issues/4405
2021-06-27 18:02:39 +02:00
Cameron
3430342d0d PHPMailer upgrade to v6.2.0 2021-06-25 11:47:39 -07:00
Cameron
00d584f584 Experimental CSS filtering. 2021-06-24 12:29:47 -07:00
Cameron
d8f9a96dea Issue #4520 Possible fix for session duration. (testing needed) 2021-06-18 09:44:26 -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
Cameron
7302803a75 Issue #4270 Added .webp browser-support detection. Media-Manager "Convert to webp during render" can now be safely enabled and will temporarily fallback to the regular image if the browser does not support webp images. 2021-06-18 08:43:53 -07:00
Cameron
a89b58a8a2 Allow users to login when maintenance mode is active and is permitted. 2021-06-15 15:37:45 -07:00
Cameron
0deb235ee7 Unit test fixes. 2021-06-14 16:51:43 -07:00
Cameron
4e75903292 Fix for empty image. 2021-06-13 12:59:01 -07:00
Cameron
aa6e449aee New shortcode added on News view page: {NEWS_AUTHOR_REALNAME}
Tagcloud menu can now be sorted via shortcode parms. eg. {MENU: path=tagcloud&order=tag,asc&limit=20}
Animate.css library loading example added to bootstrap5/theme.xml
2021-06-12 16:18:51 -07:00
Cameron
f561c5920b Bootstrap updated to v5.0.1 2021-06-07 17:07:02 -07:00
Cameron
157a35a5e7 Custom-fields raw mode was missing for types textarea and bbarea. 2021-06-07 08:43:41 -07:00
Cameron
a6e287d680 {---BREADCRUMB---} processing is now supported. (see bootstrap5/theme_shortcodes.php for an example) 2021-06-04 12:27:25 -07:00
Cameron
1ae7e3a2ed Bootstrap5 fix for video ratio. 2021-06-03 13:45:07 -07:00
Cameron
83c52c8bd8 Use e107::route() to safely get e_ROUTE value. 2021-06-01 16:36:09 -07:00
Cameron
3a71366954 Added {THEME} shortcode (path) to core shortcodes. 2021-06-01 16:07:38 -07:00
Cameron
8023a2b9f6 Extra header information added to debug info. 2021-06-01 15:14:33 -07:00
Nick Liu
2a94814e8a
Fix PHP warning: Array to string conversion in db_debug_class.php:770
```
Array to string conversion, Line 770 of /home/deltik/public_html/e107_handlers/db_debug_class.php
```
2021-05-18 16:49:32 -05:00
Nick Liu
1874d3d936
Fix PHP warning: Undefined array key "" in shortcode_handler.php:1362
```
Undefined array key "", Line 1362 of /home/deltik/public_html/e107_handlers/shortcode_handler.php
```
2021-05-18 16:48:51 -05:00
Cameron
8d29f97bd2 Sort by primary id when exporting tables. Alert-box styling fix on modern-light admin theme. 2021-05-11 13:26:27 -07:00
Cameron
80f59e2493 Upgraded Bootstrap 5 to final version. (no more beta) 2021-05-07 12:07:38 -07:00
Moc
db9883f36d
Fixes #4492 - Disable autocomplete on captcha (secure image) 2021-04-25 16:00:03 +02:00
Moc
ee346eb06c
#4492 - Prevent autofill / autocomplete on captcha 2021-04-24 11:59:26 +02:00
Cameron
e5ff5f53c8 Issue #550 - Expanded filetypes.xml display in admin preferences area to include Admin and Main admin perms. Additional defaults for admin and mainadmin added to filetypes.xml during installation. 2021-04-21 16:48:04 -07:00
Cameron
098660d38a Issue #550 - filetypes.xml now used by media-manager. 2021-04-21 11:51:53 -07:00
Cameron
c57b029877 Fixes #4493 - USER_WIDTH causing PHP8 error. 2021-04-20 13:32:58 -07:00