1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-21 21:57:34 +02:00

4206 Commits

Author SHA1 Message Date
Cameron
cf5459620c Fix forum post PHP error. 2021-10-18 16:41:51 -07:00
Cameron
573a8d55af Issue #4578 - Legacy forum template issue with missing thread subject element. 2021-10-18 14:17:54 -07:00
Cameron
c8e48970ce Avoid error in PHP8. 2021-10-18 13:32:35 -07:00
Cameron
bc84cdc59e Issue #4578 - possible fix for editing issue. 2021-10-18 11:33:14 -07:00
Cameron
acff5c699e Bootstrap5 fix for dropdown dividers 2021-10-18 11:19:57 -07:00
Cameron
ce70a5944a Bootstrap5 forum dropdown styling fix. 2021-10-18 10:18:24 -07:00
Cameron
9ac051f2a6 Bootstrap5 layout styling 2021-10-18 10:01:19 -07:00
Cameron
d49f53677b More bootstrap5 layout fixes 2021-10-18 09:53:49 -07:00
Cameron
95ea56bb89 Forum navigation layout fix. 2021-10-18 09:09:01 -07:00
Cameron
9aee6b7509 Issue #4530 Set default send-to class to members. 2021-10-17 09:00:22 -07:00
Cameron
73dfbf0d74 Issue #4299 - PHP8 fatal error fixes 2021-10-17 08:43:07 -07:00
Cameron
8d968d2ee3 e107.org URL updates. 2021-10-16 13:18:45 -07:00
Cameron
da219c31ae Fix forum replies/topic count styling on sub forums. 2021-10-10 09:15:16 -07:00
Cameron
fd116c177a Meta PHP warnings fix. 2021-10-10 09:03:07 -07:00
Cameron
5e83895c8f Fixes #4544 - SubForum missing global value. LAN shortcode now parsed correctly. 2021-10-10 08:55:16 -07:00
Cameron
1351435a7c Added some missing canonical values. 2021-10-04 11:56:30 -07:00
Cameron
34ad8bc1d8 More jQuery.once() to jQuery.one() replacements. 2021-10-03 11:03:23 -07:00
Cameron
80294ba65b Fix typo in last commit. 2021-10-01 08:58:21 -07:00
Cameron
fc2db726f2 Make sure og:type always has a value. 2021-10-01 08:47:18 -07:00
Cameron
e06069459f Add og:title by default. Set open-graph data for frontpage. 2021-10-01 08:35:54 -07:00
Cameron
e5b139e91a Set og:url and twitter:url when e107::canonical is called. Twitter card meta added to news posts and pages. 2021-09-29 18:43:20 -07:00
Cameron
8167f5eb6e Merge pull request #4569 from Deltik/hotfix/4547
Fixes #4547: Strip BBCode from `download_shortcodes` JavaScript alerts
2021-09-29 09:49:23 -07:00
Cameron
f42ac5a8e8 Replaced e_PAGETITLE with e107::title(); 2021-09-28 13:15:53 -07:00
Cameron
8c0b216ffd Linkwords upgrade should now complete correctly. 2021-09-28 09:21:49 -07:00
Cameron
06e88e5fb7 Linkwords plugin update.
Fixes issue with admin preferences not being respected or no linking occurring.
Prefs now moved out of core and into plugin prefs.
Test page added to admin area.
Relationship field added.
e_tohtml.php deprecated in favor of e_parse.php
Tests updated.
2021-09-28 08:56:54 -07:00
Cameron
5fd8fdc92b Fixed e107 v1 to v2 forum migration adding check for deprecated files. Fixed breadcrumb subforum visibility and URL when SEFURL is disabled. 2021-09-26 10:43:33 -07:00
Cameron
69d5b49525 Fixed news tag query 2021-09-25 11:43:19 -07:00
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