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

13505 Commits

Author SHA1 Message Date
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
Nick Liu
840e818f40
e_form: Allow HTML attribute "value" keys with blank values
Otherwise, something like `<option>Nope</option>` will get a value of
"Nope" instead of "" as in `<option value=''>Nope</option>`.
2021-10-08 18:03:44 -05:00
Cameron
091145c1fe
Merge pull request #4589 from Deltik/fix/form-builder-escaping
Fix most `e_form` form builder escaping problems
2021-10-07 16:10:44 -07:00
Nick Liu
2fa9d10c57
e_form: Handle attribute HTML entities properly for most form elements
The result is a much more consistent form experience with less fear that
some values put into an `e_form` method will break the web page.

This commit covers the most common uses of `e_form` with HTML attribute
quoting via `e_form::attributes()`.
2021-10-06 20:14:51 -05:00
Nick Liu
2080c772c1
Simplify e_form::get_attributes()
Reduce code duplication without changing behavior

Introduce helper `e_form::attributes()` to generate HTML attributes
2021-10-06 13:07:30 -05:00
Nick Liu
19f48180dc
Restore htmlspecialchars() for e_parse::filter(…, 'str')
Fixes regression from 20882920a0b68937570264949512acc0c4841dbd where
data would get inserted into the database with literal quotation marks,
but e107 has always expected `&quot;` and `&#39;` to come directly from
the database
2021-10-06 13:06:31 -05:00
Cameron
d4d0a74858 Make sure to use property attribute on og:type 2021-10-06 07:34:28 -07:00
Cameron
1351435a7c Added some missing canonical values. 2021-10-04 11:56:30 -07:00
Cameron
7171ca8e3d Fixes #4580 - Some BBCodes were not functioning. 2021-10-04 10:18:00 -07:00
Cameron
34ad8bc1d8 More jQuery.once() to jQuery.one() replacements. 2021-10-03 11:03:23 -07:00
Cameron
9aa6d16f2c Make sure news author avatar has an image. 2021-10-02 13:02:28 -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
4f5eb66048 Moved title tag directly under html tag. Changed separator to pipe | and added an option for processing the title in theme::title(). 2021-10-01 07:18:37 -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
567b5022f2 Fix for customfields Youtube video preview not displaying after selection. 2021-09-29 10:44:21 -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
Nick Liu
010492b67e
Stub e_date::convert_date() in e_parse_shortcodeTest
Prevents this flaky error:

---------
1) e_parse_shortcodeTest: Forum shortcodes
 Test  tests/unit/e_parse_shortcodeTest.php:testForumShortcodes
{INFO} != sc_info()
Failed asserting that two strings are equal.
- Expected | + Actual
@@ @@
'Welcome e107-cli<br />There are no new posts since your last visit.<br />
You last visited at  <br />
-			It is now Tuesday 28 September 2021 - 16:25:39'
+			It is now Tuesday 28 September 2021 - 16:25:38'
#1  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1656
#2  /__w/e107/e107/e107_tests/tests/unit/e_parse_shortcodeTest.php:1147
#3  e_parse_shortcodeTest->testForumShortcodes
#4  {closure}
2021-09-28 12:27:09 -05: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
5ecc0beca6 Issue #6 LANS added. Clear system cache before checking for updates. Extra checks to e_parse to avoid possible errors. 2021-09-28 08:13:27 -07:00
Cameron
c15adc1f20 Intervention updated to v2.6.1
PHPMailer updated to v6.5.1
2021-09-27 10:48:29 -07:00
Cameron
320287f6ad Fix PHP error on some legacy themes that are missing meta-data. e107_tests composer update. 2021-09-27 10:45:06 -07:00
Cameron
c7dc227e24
Merge pull request #4575 from Deltik/fix/4574
Add index to database session handler for session expiry
2021-09-27 10:30:06 -07:00
Cameron
66d8081580 Added new field to navigation links table: link_rel 2021-09-27 10:22:14 -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
Nick Liu
54ed823aba
Add index to database session handler for session expiry
Greatly improves garbage collection performance

Fixes: #4574
2021-09-25 15:15:33 -05: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
1870431616
Merge pull request #4573 from Deltik/fix/4572
#4572: `e_form`: No `htmlspecialchars()` on "other" attributes
2021-09-23 14:40:53 -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
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
d0f8f348fe Removed cacheID from cached JS/CSS URLs - now automatically included within filename hash. 2021-09-15 19:25:10 -07:00
Cameron
f669ea9053 Added aria-label to XURL icons. 2021-09-15 19:18:53 -07:00