1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-08 03:27:08 +02:00
Commit Graph

4079 Commits

Author SHA1 Message Date
Cameron
5cf3f9d57b Fix for news tag links containing spaces. 2021-09-25 10:25:04 -07:00
Cameron
af0b5dcb84 More rel="noopener" and og: changes. 2021-09-25 09:57:18 -07:00
Cameron
5d0db673e3 Moved help tip to correct field. 2021-09-25 09:38:50 -07:00
Cameron
3a241727f8 Keep FB scraper up-to-date with changes. 2021-09-24 13:19:06 -07:00
Cameron
c7be6a57e8 Open-graph improvements in news. 2021-09-24 13:08:45 -07:00
Cameron
fb96bfba39 Option added to use different field for link name. 2021-09-23 15:55:32 -07: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
9c2d7ec2d6 Prevent news item data being overwritten within latestnews_menu 2021-09-22 13:31:37 -07:00
Cameron
79e016a7f6 Using e107::title() will now automatically add an og:title meta value if one isn't already defined. 2021-09-22 12:23:30 -07:00
Cameron
8b2e6b955a Updated define('e_PAGETITLE') to e107::title() 2021-09-22 12:14:24 -07:00
Cameron
34b9e454da Fix for tagcloud word limit. 2021-09-19 11:40:40 -07:00
Cameron
92f6c54c9c Added rel="noopener noreferrer" to XURL links. 2021-09-15 19:52:33 -07:00
Cameron
f669ea9053 Added aria-label to XURL icons. 2021-09-15 19:18:53 -07:00
Nick Liu
55200fe686 #4547: Strip BBCode from download_shortcodes JavaScript alerts
Fixes: #4547

Discussion:
https://github.com/e107inc/e107/pull/4547#issuecomment-917229877
2021-09-15 16:05:31 -05:00
Cameron
4747ad3c6e Merge pull request #4547 from Deltik/fix/4546
Deprecate `e_parse::toJS()`
2021-09-15 12:18:41 -07:00
Cameron
2682aeaa27 Token checks added. 2021-09-14 13:28:03 -07:00
Cameron
3e52f29087 Merge pull request #4554 from Deltik/php-8.1
PHP 8.1 compatibility
2021-09-10 14:38:31 -07:00
Cameron
f5bb80607a word limit per record added. 2021-09-09 13:20:51 -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
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
7973e10dea Debug code removal. Rel prev/next added. 2021-08-13 11:53:21 -07:00
Cameron
fe8ae40f30 Robot directive removed from default route. 2021-07-26 16:15:55 -07:00
Cameron
95fab15c02 Gsitemap: Display link visibility status while importing. 2021-07-22 13:51:35 -07:00
Cameron
fce00b4276 Gsitemap: Fix for importing navigation links that use a SEF URL configuration. 2021-07-22 12:15:04 -07:00
Nick Liu
7a04260b5f #4299: Wrap even more potentially undefined constants
In:
* Admin-UI
* Forums
2021-07-21 20:23:06 +02: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
Nick Liu
ccf0f037aa #4299: Wrap more potentially undefined constants
In:
* Forums
* /e107_admin/menus.php
2021-07-13 13:10:59 +02:00
Cameron
c941e5b98d Issue #4024 - Pagination url option added to News preferences. Select between 'record' (legacy format eg. page=20, page=40 etc) or 'page' numbers (page=1, page=2 etc). Experimental - requires more testing. 2021-07-06 17:53:55 -07:00
Cameron
d2411404c4 Issue #4299 PHP8 Fix 2021-06-14 17:05:57 -07:00
Cameron
5652fd2bd9 Merge pull request #4515 from Deltik/fix/4512
#4512: faqs_shortcodes::sc_faq_count(): Return blank string instead of 0
2021-06-14 16:55:10 -07:00
Cameron
a1e7d29661 Optional {NEWS_PAGINATION} shortcode added. 2021-06-14 14:42:17 -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
Nick Liu
7cef4264c6 #4512: faqs_shortcodes::sc_faq_count(): Return blank string instead of 0
Previously incorrect null coalesce returns 0 instead of a blank string

Fixes: #4512
2021-06-07 21:52:36 -05:00
Cameron
6674beaf82 Added a button to allow closing of "Developer Mode" alert message. Fixed default button styling of some news buttons under Bootstrap 5. 2021-05-08 12:39:17 -07:00
Cameron
4034d4ab0c Issue #4489 - Render comments code example added. 2021-04-20 13:44:14 -07:00
Nick Liu
ce7f3b5d56 Add: e_parse::toFlatArray() and e_parse::fromFlatArray()
Utility functions to convert multi-dimensional arrays to slash-delimited
single-dimensional arrays and vice versa
2021-04-17 02:56:12 -05:00
Cameron
51024a5e8e Fix PHP errors under some circumstances. 2021-04-16 13:43:26 -07:00
Cameron
ee464286e0 BC Fix for contact LANs. 2021-04-12 14:31:27 -07:00
Cameron
2862e18db9 Issue #4471 2021-04-06 18:41:15 -07:00
Cameron
240c088eff Issue #4478 - Fixes decorate_download_location() and check_download_limits() 'missing function' errors. 2021-04-06 10:40:58 -07:00
Cameron
2904f1e792 All Unit tests passing locally. 2021-03-31 12:11:23 -07:00
Cameron
0876e0d43b Contact LANs updated to v2 specifications. BC fix included. 2021-03-29 17:50:51 -07:00
Cameron
56d4855192 Fixes #4464 - Updated comment render() example to match functionality. 2021-03-25 11:23:47 -07:00
Cameron
87521f330f Issue #4458 NULL value example added to blank plugin's admin-ui. 2021-03-23 11:05:04 -07:00
Moc
cdc61c90ee Forum update fixes (duplicate SEF & logging) 2021-03-22 20:31:07 +01:00
Cameron
c33b91ee5c Issue #4368 Fixed hardcoded string for 'related' content. Now uses tablerender(). Shortcode processing of {---CAPTION---} added. 2021-03-22 11:26:51 -07:00
Moc
b2cf6c07b3 #4452 - Add e_print addon code and check 2021-03-17 19:42:21 +01:00
Cameron
07faad666a Issue #2726, Issue #4452 - Added new e_print.php addon which uses v2.x standards. 2021-03-17 11:22:25 -07:00
Cameron
b0bc9d344a Merge pull request #4426 from yesszus/patch-2
Update hero_template.php
2021-03-03 12:12:27 -08:00