GitHub/WoltLab/WCF.git
15 months agoFix a typo
Alexander Ebert [Mon, 17 Jul 2023 11:19:19 +0000 (13:19 +0200)]
Fix a typo

Co-authored-by: Tim Düsterhus <duesterhus@woltlab.com>
15 months agoClean up the code
Alexander Ebert [Mon, 17 Jul 2023 11:17:27 +0000 (13:17 +0200)]
Clean up the code

15 months agoAdd resize support for attachments
Alexander Ebert [Fri, 14 Jul 2023 16:08:57 +0000 (18:08 +0200)]
Add resize support for attachments

15 months agoAdd support for resizable attachments
Alexander Ebert [Fri, 14 Jul 2023 14:34:15 +0000 (16:34 +0200)]
Add support for resizable attachments

15 months agoMerge pull request #5587 from WoltLab/attachment-bbcode-refactor
Alexander Ebert [Mon, 17 Jul 2023 10:26:20 +0000 (12:26 +0200)]
Merge pull request #5587 from WoltLab/attachment-bbcode-refactor

Refactor `AttachmentBBCode`

15 months agoInvert the logic by short-circuiting for thumbnails
Alexander Ebert [Fri, 14 Jul 2023 16:34:01 +0000 (18:34 +0200)]
Invert the logic by short-circuiting for thumbnails

15 months agoSimplify the handling of the alignment CSS classes
Alexander Ebert [Fri, 14 Jul 2023 16:29:19 +0000 (18:29 +0200)]
Simplify the handling of the alignment CSS classes

15 months agoSlightly improve the consistency of HTML generation
Alexander Ebert [Fri, 14 Jul 2023 15:35:55 +0000 (17:35 +0200)]
Slightly improve the consistency of HTML generation

15 months agoUse short circuits and replace large string concats with `\sprintf()`
Alexander Ebert [Fri, 14 Jul 2023 15:21:05 +0000 (17:21 +0200)]
Use short circuits and replace large string concats with `\sprintf()`

15 months agoSplit the `getParsedTag()` method into specific functions
Alexander Ebert [Fri, 14 Jul 2023 14:55:34 +0000 (16:55 +0200)]
Split the `getParsedTag()` method into specific functions

15 months agoRemove long deprecated support for external object lists
Alexander Ebert [Fri, 14 Jul 2023 14:39:24 +0000 (16:39 +0200)]
Remove long deprecated support for external object lists

This features was deprecated 9 years ago in https://github.com/WoltLab/WCF/commit/0a2b09a2d0d914887eedf43d02328add19ec4216

15 months agoMerge pull request #5586 from WoltLab/package-installation-submit-ux
Tim Düsterhus [Fri, 14 Jul 2023 12:58:23 +0000 (14:58 +0200)]
Merge pull request #5586 from WoltLab/package-installation-submit-ux

Improve the UX around submitting package installation requests

15 months agoShow the regular AJAX status in package installation until the first request goes...
Tim Düsterhus [Fri, 14 Jul 2023 12:20:46 +0000 (14:20 +0200)]
Show the regular AJAX status in package installation until the first request goes through

Until the first request goes through, nothing is visible, as the dialog is not
yet spawned. Show the regular AJAX status to improve the UX.

15 months agoDisable submit button in package installation confirmation after clicking
Tim Düsterhus [Fri, 14 Jul 2023 12:20:08 +0000 (14:20 +0200)]
Disable submit button in package installation confirmation after clicking

It might take a while for the request to go through and the admin should not
click twice.

15 months agoMerge pull request #5584 from WoltLab/reset-date-selection-ui
Marcel Werk [Fri, 14 Jul 2023 11:20:06 +0000 (13:20 +0200)]
Merge pull request #5584 from WoltLab/reset-date-selection-ui

Improve UI of the reset button in the date picker

15 months agoMerge remote-tracking branch 'origin/master'
Tim Düsterhus [Fri, 14 Jul 2023 08:33:11 +0000 (10:33 +0200)]
Merge remote-tracking branch 'origin/master'

15 months agoMerge branch '5.5'
Tim Düsterhus [Fri, 14 Jul 2023 08:32:14 +0000 (10:32 +0200)]
Merge branch '5.5'

15 months agoFix truncation of Unicode string query parameters in Benchmark
Tim Düsterhus [Fri, 14 Jul 2023 08:28:50 +0000 (10:28 +0200)]
Fix truncation of Unicode string query parameters in Benchmark

This needs to use `mb_substr()`, as we checked UTF-8 validity before to use
`UNHEX()` with binary strings. Previously UTF-8 sequences might've been cut
short and the resulting invalid sequence cannot be JSON encoded, as JSON
requires strings to be valid UTF-8.

see https://www.woltlab.com/community/thread/298853-schwer-reproduzierbar-fehlermeldungen-beim-importieren-von-sprachdateien/

15 months agoRemove obsolete code
Marcel Werk [Thu, 13 Jul 2023 16:43:38 +0000 (18:43 +0200)]
Remove obsolete code

15 months agoImprove UI of the reset button in the date picker
Marcel Werk [Thu, 13 Jul 2023 16:27:50 +0000 (18:27 +0200)]
Improve UI of the reset button in the date picker

15 months agoMerge pull request #5577 from WoltLab/unbundle-ckeditor
Alexander Ebert [Thu, 13 Jul 2023 14:27:43 +0000 (16:27 +0200)]
Merge pull request #5577 from WoltLab/unbundle-ckeditor

Defer loading of CKEditor and unbundle its components for the accelerated guest view

15 months agoMerge pull request #5581 from WoltLab/newsfeed-loading
Alexander Ebert [Thu, 13 Jul 2023 14:23:15 +0000 (16:23 +0200)]
Merge pull request #5581 from WoltLab/newsfeed-loading

Improve the loading experience of the newsfeed in dark mode

15 months agoImprove the behavior on mobile, use the loading indicator component
Alexander Ebert [Thu, 13 Jul 2023 14:18:52 +0000 (16:18 +0200)]
Improve the behavior on mobile, use the loading indicator component

15 months agoMerge pull request #5578 from WoltLab/light-mode-contrast
Alexander Ebert [Thu, 13 Jul 2023 13:59:16 +0000 (15:59 +0200)]
Merge pull request #5578 from WoltLab/light-mode-contrast

Improve the contrast of colors in the light mode

15 months agoSlightly increase the size of buttons and inputs on touch devices
Alexander Ebert [Thu, 13 Jul 2023 13:58:52 +0000 (15:58 +0200)]
Slightly increase the size of buttons and inputs on touch devices

See https://www.woltlab.com/community/thread/300621-input-height-mobile-device/

15 months agoMerge pull request #5583 from WoltLab/url-detection
Marcel Werk [Thu, 13 Jul 2023 13:50:19 +0000 (15:50 +0200)]
Merge pull request #5583 from WoltLab/url-detection

Improve detection of URL in texts

15 months agoLimit URL detection to http(s) protokoll
Marcel Werk [Thu, 13 Jul 2023 13:48:13 +0000 (15:48 +0200)]
Limit URL detection to http(s) protokoll

15 months agoApply suggestions from code review
Marcel Werk [Thu, 13 Jul 2023 13:40:53 +0000 (15:40 +0200)]
Apply suggestions from code review

15 months agoImprove detection of URL in texts
Marcel Werk [Thu, 13 Jul 2023 13:25:14 +0000 (15:25 +0200)]
Improve detection of URL in texts

15 months agoImprove the loading experience of the newsfeed in dark mode
Tim Düsterhus [Thu, 13 Jul 2023 12:59:39 +0000 (14:59 +0200)]
Improve the loading experience of the newsfeed in dark mode

The default page of an `<iframe>` is `about:blank` which has a light background
color. In case the newsfeed loads slowly or fails to load entirely, there will
be a big white block in a dark mode ACP which looks odd.

Fix this issue by setting the `<iframe>` to be `visibility: hidden` until the
contents are available. Additionally a spinner is shown while the iframe is
hidden.

15 months agoMerge pull request #5579 from WoltLab/return-symbol
Tim Düsterhus [Thu, 13 Jul 2023 10:02:37 +0000 (12:02 +0200)]
Merge pull request #5579 from WoltLab/return-symbol

Use correct character for return key in phrases

15 months agoUse correct character for return key in phrases
Tim Düsterhus [Thu, 13 Jul 2023 09:51:32 +0000 (11:51 +0200)]
Use correct character for return key in phrases

Per https://en.wikipedia.org/wiki/Enter_key#Keyboard_symbols:

> The return key symbol is U+23CE ⏎ RETURN SYMBOL, an arrow pointing down and
> leftward;

15 months agoAdd dummy definition file for `ckeditor5-bundle` module
Tim Düsterhus [Thu, 13 Jul 2023 07:58:35 +0000 (09:58 +0200)]
Add dummy definition file for `ckeditor5-bundle` module

This prevents TypeScript from complaining about a non-existent module when
dynamically loading it for the definitions of the globals.

15 months agoChange icon for the notification to solid version
Marcel Werk [Wed, 12 Jul 2023 15:59:23 +0000 (17:59 +0200)]
Change icon for the notification to solid version

This will bring the icon more in line with the other icons in the user panel.

15 months agoUpdate the default colors
Alexander Ebert [Wed, 12 Jul 2023 15:46:40 +0000 (17:46 +0200)]
Update the default colors

15 months agoImprove the color contrast of badges
Alexander Ebert [Mon, 10 Jul 2023 09:55:14 +0000 (11:55 +0200)]
Improve the color contrast of badges

15 months agoImprove the color contrast in the light mode
Alexander Ebert [Fri, 7 Jul 2023 15:29:49 +0000 (17:29 +0200)]
Improve the color contrast in the light mode

15 months agoRemove CKEditor components from the tiny bundle
Alexander Ebert [Wed, 12 Jul 2023 15:29:20 +0000 (17:29 +0200)]
Remove CKEditor components from the tiny bundle

15 months agoDefer loading of the CKEditor bundle until it is first requested
Alexander Ebert [Wed, 12 Jul 2023 15:23:48 +0000 (17:23 +0200)]
Defer loading of the CKEditor bundle until it is first requested

15 months agoRestructure the toolbar a bit
Alexander Ebert [Wed, 12 Jul 2023 14:21:02 +0000 (16:21 +0200)]
Restructure the toolbar a bit

15 months agoForce the button separators to cover the entire height
Alexander Ebert [Wed, 12 Jul 2023 14:09:56 +0000 (16:09 +0200)]
Force the button separators to cover the entire height

15 months agoImprove the appearance of split buttons
Alexander Ebert [Wed, 12 Jul 2023 14:06:52 +0000 (16:06 +0200)]
Improve the appearance of split buttons

15 months agoAdd PHP 8.3 to the php.yml workflow
Tim Düsterhus [Wed, 12 Jul 2023 13:48:21 +0000 (15:48 +0200)]
Add PHP 8.3 to the php.yml workflow

15 months agoAdd some margin around spoilers
Alexander Ebert [Wed, 12 Jul 2023 11:49:15 +0000 (13:49 +0200)]
Add some margin around spoilers

15 months agoIncrease the top gap of quotes to separate them from preceding content
Alexander Ebert [Tue, 11 Jul 2023 15:50:00 +0000 (17:50 +0200)]
Increase the top gap of quotes to separate them from preceding content

15 months agoMerge pull request #5574 from WoltLab/language-selector-icons
Marcel Werk [Tue, 11 Jul 2023 14:06:08 +0000 (16:06 +0200)]
Merge pull request #5574 from WoltLab/language-selector-icons

Add icons to the mobile version of the language selector

15 months agoFix javascript error when you click on the language selector in the mobile menu
Marcel Werk [Tue, 11 Jul 2023 13:59:48 +0000 (15:59 +0200)]
Fix javascript error when you click on the language selector in the mobile menu

15 months agoAdd icon to the mobile version of the language selector
Marcel Werk [Tue, 11 Jul 2023 13:59:15 +0000 (15:59 +0200)]
Add icon to the mobile version of the language selector

15 months agoUse `overflow-x: clip` instead of `hidden`
Alexander Ebert [Tue, 11 Jul 2023 12:23:34 +0000 (14:23 +0200)]
Use `overflow-x: clip` instead of `hidden`

The `hidden` property breaks `position: sticky`, but the `clip` value restores the behavior.

This value is not supported in Safari <16 in which case it falls back to the previous behavior of permitting horizontal overflow. This is an acceptable behavior.

15 months agoFix icon colors in message header / thread list
Marcel Werk [Tue, 11 Jul 2023 12:05:42 +0000 (14:05 +0200)]
Fix icon colors in message header / thread list

The link color has affected the icons, which was not intended in these locations.

15 months agoPreventing the body scrolling no longer requires a hack on non-iOS devices
Alexander Ebert [Tue, 11 Jul 2023 10:29:58 +0000 (12:29 +0200)]
Preventing the body scrolling no longer requires a hack on non-iOS devices

15 months agoFix the position of non-fixed elements
Alexander Ebert [Tue, 11 Jul 2023 10:23:55 +0000 (12:23 +0200)]
Fix the position of non-fixed elements

See https://www.woltlab.com/community/thread/300599-reaktionsauswahl-scrollt-nach-unten/

15 months agoRelease 6.0.0 Alpha 5 6.0.0_Alpha_5
Alexander Ebert [Mon, 10 Jul 2023 15:38:47 +0000 (17:38 +0200)]
Release 6.0.0 Alpha 5

15 months agoUpdating minified JavaScript files
WoltLab [Mon, 10 Jul 2023 15:32:09 +0000 (15:32 +0000)]
Updating minified JavaScript files

15 months agoUpdate the CKEditor 5 bundle
Alexander Ebert [Mon, 10 Jul 2023 15:19:57 +0000 (17:19 +0200)]
Update the CKEditor 5 bundle

15 months agoStrip the unnecessary alignment of the to top button
Alexander Ebert [Mon, 10 Jul 2023 14:39:43 +0000 (16:39 +0200)]
Strip the unnecessary alignment of the to top button

Fixes #5570

15 months agoAdd a hover state for inline code inside links
Alexander Ebert [Mon, 10 Jul 2023 14:34:31 +0000 (16:34 +0200)]
Add a hover state for inline code inside links

See https://www.woltlab.com/community/thread/300478-linked-inline-code-not-distinguishable/

15 months agoMake `woltlab-core-dialog.show()` idempotent
Alexander Ebert [Mon, 10 Jul 2023 14:20:20 +0000 (16:20 +0200)]
Make `woltlab-core-dialog.show()` idempotent

See https://www.woltlab.com/community/thread/300525-seitenauswahl-verschwindet/

16 months agoMerge pull request #5573 from WoltLab/breadcrumbs-css2
Marcel Werk [Mon, 10 Jul 2023 13:34:04 +0000 (15:34 +0200)]
Merge pull request #5573 from WoltLab/breadcrumbs-css2

Cleanup CSS for breadcrumbs

16 months agoMerge pull request #5572 from WoltLab/cli-prompt-time
Tim Düsterhus [Mon, 10 Jul 2023 13:32:09 +0000 (15:32 +0200)]
Merge pull request #5572 from WoltLab/cli-prompt-time

Show current time in CLI prompt

16 months agoCleanup CSS for breadcrumbs
Marcel Werk [Mon, 10 Jul 2023 13:24:50 +0000 (15:24 +0200)]
Cleanup CSS for breadcrumbs

* Move all breadcrumbs-related CSS into one file
* Remove some obsolete CSS
* Rewrite selectors to use the new CSS classes
* Fix the issue that the parent indicator icon is shown in tablet view

16 months agoShow current time in CLI prompt
Tim Düsterhus [Mon, 10 Jul 2023 13:18:59 +0000 (15:18 +0200)]
Show current time in CLI prompt

16 months agoPermit concurrent scroll requests for the same element
Alexander Ebert [Mon, 10 Jul 2023 12:03:37 +0000 (14:03 +0200)]
Permit concurrent scroll requests for the same element

See https://www.woltlab.com/community/thread/300558-ckeditor-alle-zitate-einf%C3%BCgen-funktioniert-nicht-korrekt/

16 months agoDo not scroll the editor into the view if it is already (partially) visible
Alexander Ebert [Mon, 10 Jul 2023 11:51:13 +0000 (13:51 +0200)]
Do not scroll the editor into the view if it is already (partially) visible

See https://www.woltlab.com/community/thread/300513-durch-ein-im-editor-eingef%C3%BCgter-smiley-wird-die-seite-nach-oben-geschoben/

16 months agoMerge branch '5.5'
Alexander Ebert [Mon, 10 Jul 2023 10:06:33 +0000 (12:06 +0200)]
Merge branch '5.5'

16 months agoMerge branch '5.4' into 5.5
Alexander Ebert [Mon, 10 Jul 2023 10:04:39 +0000 (12:04 +0200)]
Merge branch '5.4' into 5.5

16 months agoMigrate the ACP news from Twitter to woltlab.com
Alexander Ebert [Mon, 10 Jul 2023 09:59:31 +0000 (11:59 +0200)]
Migrate the ACP news from Twitter to woltlab.com

16 months agoUpdate focus-trap
Tim Düsterhus [Mon, 10 Jul 2023 07:44:37 +0000 (09:44 +0200)]
Update focus-trap

https://www.woltlab.com/community/thread/300576-benachrichtungen-unter-firefox-102-13-0esr/?postID=1930817#post1930817

16 months agoFix the selection of color variables in Safari
Alexander Ebert [Fri, 7 Jul 2023 11:14:14 +0000 (13:14 +0200)]
Fix the selection of color variables in Safari

16 months agoSync the appearance of suggestions with the style
Alexander Ebert [Thu, 6 Jul 2023 15:47:57 +0000 (17:47 +0200)]
Sync the appearance of suggestions with the style

See https://www.woltlab.com/community/thread/300529-styling-men%C3%BC-erw%C3%A4hnungen/

16 months agoFix the notification counter on the favicon
Alexander Ebert [Thu, 6 Jul 2023 14:57:34 +0000 (16:57 +0200)]
Fix the notification counter on the favicon

The selector was no longer valid when the `rel` property of the favicon was updated in a1513aeb5fffb4a540e817e5e3424bf45ff5609b

16 months agoFix the check of quoted users
Alexander Ebert [Thu, 6 Jul 2023 14:41:20 +0000 (16:41 +0200)]
Fix the check of quoted users

The check against the host was simplified in 2e238f48617d5d2a97d1e2b7a0d296337570b396, but the condition was incorrectly modified.

16 months agoMerge pull request #5568 from WoltLab/breadcrumbs-css
Marcel Werk [Thu, 6 Jul 2023 14:06:09 +0000 (16:06 +0200)]
Merge pull request #5568 from WoltLab/breadcrumbs-css

Overhaul CSS for breadcrumbs

16 months agoFix/unify use of title case
Marcel Werk [Thu, 6 Jul 2023 12:06:39 +0000 (14:06 +0200)]
Fix/unify use of title case

16 months agoOverhaul CSS for breadcrumbs
Marcel Werk [Thu, 6 Jul 2023 11:27:36 +0000 (13:27 +0200)]
Overhaul CSS for breadcrumbs

16 months agoSuppress hover states for `.tabularListRow` on touch devices
Alexander Ebert [Thu, 6 Jul 2023 10:28:09 +0000 (12:28 +0200)]
Suppress hover states for `.tabularListRow` on touch devices

See https://www.woltlab.com/community/thread/300514-hover-sieht-mobil-nach-wie-vor-doof-aus-in-themenlisten/

16 months agoSuppress the content border at the top of the first message
Alexander Ebert [Thu, 6 Jul 2023 10:26:09 +0000 (12:26 +0200)]
Suppress the content border at the top of the first message

16 months agoFix the calculation of element positions with unrestricted body heights
Alexander Ebert [Thu, 6 Jul 2023 10:18:51 +0000 (12:18 +0200)]
Fix the calculation of element positions with unrestricted body heights

16 months agoAllow the `<html>` and `<body>` element to grow
Alexander Ebert [Thu, 6 Jul 2023 10:18:39 +0000 (12:18 +0200)]
Allow the `<html>` and `<body>` element to grow

16 months agoFix parts of the editor showing through the loading overlay
Alexander Ebert [Thu, 6 Jul 2023 09:18:17 +0000 (11:18 +0200)]
Fix parts of the editor showing through the loading overlay

See https://www.woltlab.com/community/thread/300450-ladezustand-nach-absenden-eines-beitrags-zeigt-drop-down-icons/

16 months agoMigrate the mobile sidebar box layout to CSS grids
Alexander Ebert [Wed, 5 Jul 2023 18:02:56 +0000 (20:02 +0200)]
Migrate the mobile sidebar box layout to CSS grids

This allows us to abandon the utterly broken `columns` and greatly simplifies the `gap` logic.

See https://www.woltlab.com/community/thread/300330-mobile-boxen-beim-darkmode-haben-einen-rahmenfehler/

16 months agoReintroduce the fixed height of html/body
Alexander Ebert [Wed, 5 Jul 2023 17:36:31 +0000 (19:36 +0200)]
Reintroduce the fixed height of html/body

This is required to force the layout calculation of element positions to be consistent.

See 10cd0f106eafc17411ead418189ddf3a90a439aa

16 months agoFix the color scheme of `.boxInfo`
Alexander Ebert [Wed, 5 Jul 2023 17:10:01 +0000 (19:10 +0200)]
Fix the color scheme of `.boxInfo`

See https://www.woltlab.com/community/thread/300490-com-woltlab-wcf-registerbutton-s-boxinfo-class-has-no-effect/

16 months agoImprove the visuals of the mobile message list
Alexander Ebert [Wed, 5 Jul 2023 16:50:38 +0000 (18:50 +0200)]
Improve the visuals of the mobile message list

See https://www.woltlab.com/community/thread/300501-border-radius-in-mobiler-ansicht-der-messagesidebar/

16 months agoFix layout jumps causing by collapsing content heights
Alexander Ebert [Wed, 5 Jul 2023 16:29:45 +0000 (18:29 +0200)]
Fix layout jumps causing by collapsing content heights

This is a recurring issue caused by `height: 100%` in this context means “100% of the height”.

`100vh` is relative to the viewport and forces 100% of its height as the elements min-height.

This wasn’t used before, because the browser support was lackluster back then (tm).

16 months agoPrevent content from overflowing the window
Alexander Ebert [Wed, 5 Jul 2023 16:23:56 +0000 (18:23 +0200)]
Prevent content from overflowing the window

16 months agoReduce repeated `<hr>`, `<br>` and empty `<p>`
Alexander Ebert [Wed, 5 Jul 2023 14:35:29 +0000 (16:35 +0200)]
Reduce repeated `<hr>`, `<br>` and empty `<p>`

16 months agoIncrease MySQL minimum version to 8.0.30 from 8.0.29
Tim Düsterhus [Wed, 5 Jul 2023 12:43:56 +0000 (14:43 +0200)]
Increase MySQL minimum version to 8.0.30 from 8.0.29

MySQL 8.0.29 is so critically broken that the release was officially yanked and
thus is no longer available for download:

https://dev.mysql.com/doc/relnotes/mysql/8.0/en/news-8-0-29.html

> This release is no longer available for download. It was removed due to a
> critical issue that could cause data in InnoDB tables having added columns to
> be interpreted incorrectly. Please upgrade to MySQL 8.0.30 instead.

There is no reason for *anyone* to be running MySQL 8.0.29 and thus we exclude
this version from being supported.

16 months agoAdd a preview feature when restoring a draft
Alexander Ebert [Wed, 5 Jul 2023 11:22:34 +0000 (13:22 +0200)]
Add a preview feature when restoring a draft

See https://www.woltlab.com/community/thread/300352-dialog-entwurf-wiederherstellen-verbessern/

16 months agoRemove a legacy workaround for scroll disable
Alexander Ebert [Wed, 5 Jul 2023 10:39:34 +0000 (12:39 +0200)]
Remove a legacy workaround for scroll disable

See https://www.woltlab.com/community/thread/300504-woltlab-suite-6-seite-scrollt-bei-schlie%C3%9Fen-von-modal-fenster-kurz-nach-oben/

16 months agoFix the support for the alignment of embedded media
Alexander Ebert [Tue, 4 Jul 2023 15:39:03 +0000 (17:39 +0200)]
Fix the support for the alignment of embedded media

16 months agoFix PHP 8.2 deprecation in TagCloudCacheBuilder
Tim Düsterhus [Tue, 4 Jul 2023 14:57:58 +0000 (16:57 +0200)]
Fix PHP 8.2 deprecation in TagCloudCacheBuilder

16 months agoRelease 6.0.0 Alpha 4 6.0.0_Alpha_4
Alexander Ebert [Tue, 4 Jul 2023 14:43:52 +0000 (16:43 +0200)]
Release 6.0.0 Alpha 4

16 months agoUpdating minified JavaScript files
WoltLab [Tue, 4 Jul 2023 14:37:59 +0000 (14:37 +0000)]
Updating minified JavaScript files

16 months agoUpdate the CKEditor 5 bundle
Alexander Ebert [Tue, 4 Jul 2023 14:36:31 +0000 (16:36 +0200)]
Update the CKEditor 5 bundle

16 months agoMerge pull request #5566 from WoltLab/strip-html
Tim Düsterhus [Tue, 4 Jul 2023 14:32:47 +0000 (16:32 +0200)]
Merge pull request #5566 from WoltLab/strip-html

Fix StringUtil::stripHTML()

16 months agoFix the HTML tag stripping regex
Tim Düsterhus [Tue, 4 Jul 2023 14:10:40 +0000 (16:10 +0200)]
Fix the HTML tag stripping regex

The previous regex was incorrect (by attempting to support backslash escapes in
HTML attributes), incomprehensible and inefficient (by allowing for
catastrophic backtracking).

Replace it by a much simpler and more correct version that matches:

- Anything between `<` and `>`.
- That starts with an optional `/` for the closing tag.
- Followed by a single a-zA-Z letter.
- Followed by anything not `>`, except when `>` is either correctly singly or
  doubly quoted.

Fixes #5558

16 months agoFix the sizing of input fields on smartphones
Alexander Ebert [Tue, 4 Jul 2023 14:06:26 +0000 (16:06 +0200)]
Fix the sizing of input fields on smartphones

See https://www.woltlab.com/community/thread/300456-editor-block-einf%C3%BCgen-mobil/

16 months agoMerge pull request #5565 from WoltLab/search-index-strip-html
Tim Düsterhus [Tue, 4 Jul 2023 13:54:59 +0000 (15:54 +0200)]
Merge pull request #5565 from WoltLab/search-index-strip-html

Use DOMDocument + textContent to strip HTML tags for search

16 months agoMerge pull request #5564 from WoltLab/search-index-no-context
Tim Düsterhus [Tue, 4 Jul 2023 13:53:20 +0000 (15:53 +0200)]
Merge pull request #5564 from WoltLab/search-index-no-context

Fix updating the search index if the index manager does not support contexts