GitHub/WoltLab/WCF.git
13 months agoRemove inner capturing groups in FileUtil::LINK_REGEX
Tim Düsterhus [Thu, 7 Sep 2023 12:12:07 +0000 (14:12 +0200)]
Remove inner capturing groups in FileUtil::LINK_REGEX

13 months agoImprove domain detection in FileUtil::LINK_REGEX
Tim Düsterhus [Thu, 7 Sep 2023 11:55:44 +0000 (13:55 +0200)]
Improve domain detection in FileUtil::LINK_REGEX

With this change, the regex will no longer detect domains with two consecutive
dots and also the number of backtracking steps are reduced.

13 months agoAdd parameter types to various HtmlInputNodeTextParser methods
Tim Düsterhus [Thu, 7 Sep 2023 11:42:01 +0000 (13:42 +0200)]
Add parameter types to various HtmlInputNodeTextParser methods

This catches garbage inputs (specifically `null`) a little earlier and thus
improves debugging.

see https://www.woltlab.com/community/thread/301492-fehler-beim-aktualisieren-der-beitr%C3%A4ge/

13 months agoAllow PHP 8.3 in SystemCheckPage
Tim Düsterhus [Thu, 7 Sep 2023 10:37:37 +0000 (12:37 +0200)]
Allow PHP 8.3 in SystemCheckPage

This also moves PHP 8.1 from recommended to supported.

see 3fd17ae60b9851c1d07c1f8dd22bff3fe7c2360c

13 months agoOfficially allow PHP 8.3
Tim Düsterhus [Thu, 7 Sep 2023 10:30:53 +0000 (12:30 +0200)]
Officially allow PHP 8.3

13 months agoMerge pull request #5645 from WoltLab/update-server-detect-paid-update
Alexander Ebert [Thu, 7 Sep 2023 09:55:30 +0000 (11:55 +0200)]
Merge pull request #5645 from WoltLab/update-server-detect-paid-update

Detect paid updates in the Plugin-Store during the process

14 months agoSimplify the check for the trusted servers
Alexander Ebert [Thu, 7 Sep 2023 09:44:42 +0000 (11:44 +0200)]
Simplify the check for the trusted servers

14 months agoDetect paid updates in the Plugin-Store during the process
Alexander Ebert [Wed, 6 Sep 2023 19:16:37 +0000 (21:16 +0200)]
Detect paid updates in the Plugin-Store during the process

See https://www.woltlab.com/community/thread/296689/

14 months agoMerge pull request #5644 from WoltLab/clean-suspicious-link-text
Tim Düsterhus [Thu, 7 Sep 2023 07:54:47 +0000 (09:54 +0200)]
Merge pull request #5644 from WoltLab/clean-suspicious-link-text

Reduce abuse potential of link values in UGC

14 months agoEnsure the URL's authority is fully visible when truncating link values
Tim Düsterhus [Wed, 6 Sep 2023 14:30:33 +0000 (16:30 +0200)]
Ensure the URL's authority is fully visible when truncating link values

14 months agoStrip suspicious link values in HTML content
Tim Düsterhus [Wed, 6 Sep 2023 14:11:16 +0000 (16:11 +0200)]
Strip suspicious link values in HTML content

14 months agoMove the link detection regex into a reusable constant
Tim Düsterhus [Wed, 6 Sep 2023 14:05:13 +0000 (16:05 +0200)]
Move the link detection regex into a reusable constant

see #5583

14 months agoRelease 6.0.0 Beta 4 6.0.0_Beta_4
Alexander Ebert [Wed, 6 Sep 2023 14:02:39 +0000 (16:02 +0200)]
Release 6.0.0 Beta 4

14 months agoUpdating minified JavaScript files
WoltLab [Wed, 6 Sep 2023 13:52:46 +0000 (13:52 +0000)]
Updating minified JavaScript files

14 months agoUpgrade to CKEditor v39.0.2
Alexander Ebert [Wed, 6 Sep 2023 13:47:08 +0000 (15:47 +0200)]
Upgrade to CKEditor v39.0.2

14 months agoFix the text color of drop down menus
Alexander Ebert [Wed, 6 Sep 2023 13:44:41 +0000 (15:44 +0200)]
Fix the text color of drop down menus

See https://www.woltlab.com/community/thread/301335-ckeditor-dropdown-css-variablen-%C3%A4ndern/

14 months agoClean up the CSS for footer boxes
Alexander Ebert [Wed, 6 Sep 2023 12:21:55 +0000 (14:21 +0200)]
Clean up the CSS for footer boxes

14 months agoMerge pull request #5643 from WoltLab/test-php
Tim Düsterhus [Wed, 6 Sep 2023 10:19:21 +0000 (12:19 +0200)]
Merge pull request #5643 from WoltLab/test-php

Update test.php

14 months agoAdd x64 check to test.php
Tim Düsterhus [Wed, 6 Sep 2023 09:33:30 +0000 (11:33 +0200)]
Add x64 check to test.php

see 46eadac2690f19f7d7ac3f82117e12ceef35e88b

14 months agoDo not check other PHP requirements if the PHP version is incompatible in test.php
Tim Düsterhus [Wed, 6 Sep 2023 09:27:27 +0000 (11:27 +0200)]
Do not check other PHP requirements if the PHP version is incompatible in test.php

If the PHP version is not compatible, we can't really trust the other results
anyway, because test.php itself might not be compatible with the PHP version in
question and also because a change of PHP version might also change the php.ini
/ loaded extensions.

14 months agoHandle `memory_limit=-1` in test.php
Tim Düsterhus [Wed, 6 Sep 2023 09:24:57 +0000 (11:24 +0200)]
Handle `memory_limit=-1` in test.php

14 months agoAdd PHP upper bound to test.php
Tim Düsterhus [Wed, 6 Sep 2023 09:21:32 +0000 (11:21 +0200)]
Add PHP upper bound to test.php

see #5626

14 months agoUnify parsing of memory limit in test.php with the software itself
Tim Düsterhus [Wed, 6 Sep 2023 09:10:17 +0000 (11:10 +0200)]
Unify parsing of memory limit in test.php with the software itself

14 months agoRun autoformatter on test.php
Tim Düsterhus [Wed, 6 Sep 2023 09:01:08 +0000 (11:01 +0200)]
Run autoformatter on test.php

14 months agoCollect PHP logic at the top of test.php
Tim Düsterhus [Wed, 6 Sep 2023 08:59:29 +0000 (10:59 +0200)]
Collect PHP logic at the top of test.php

14 months agoMerge pull request #5642 from WoltLab/license-page
Alexander Ebert [Tue, 5 Sep 2023 15:37:12 +0000 (17:37 +0200)]
Merge pull request #5642 from WoltLab/license-page

Add a license page to install WoltLab and Plugin-Store products

14 months agoAdd `#[\Override]` to Pipeline
Tim Düsterhus [Tue, 5 Sep 2023 15:31:25 +0000 (17:31 +0200)]
Add `#[\Override]` to Pipeline

14 months agoAdd `#[\Override]` to RequestHandlerMiddleware
Tim Düsterhus [Tue, 5 Sep 2023 15:30:38 +0000 (17:30 +0200)]
Add `#[\Override]` to RequestHandlerMiddleware

14 months agoAdd `#[\Override]` to LegacyPlaceholderResponse
Tim Düsterhus [Tue, 5 Sep 2023 15:29:21 +0000 (17:29 +0200)]
Add `#[\Override]` to LegacyPlaceholderResponse

14 months agoUpgrade to `actions/checkout@v4`
Tim Düsterhus [Tue, 5 Sep 2023 15:15:15 +0000 (17:15 +0200)]
Upgrade to `actions/checkout@v4`

14 months agoMerge branch '5.5'
Tim Düsterhus [Tue, 5 Sep 2023 15:14:46 +0000 (17:14 +0200)]
Merge branch '5.5'

14 months agoUpgrade to `actions/checkout@v4`
Tim Düsterhus [Tue, 5 Sep 2023 15:13:42 +0000 (17:13 +0200)]
Upgrade to `actions/checkout@v4`

14 months agoFix the check for installable packages
Alexander Ebert [Tue, 5 Sep 2023 15:07:18 +0000 (17:07 +0200)]
Fix the check for installable packages

14 months agoSlightly improve the phrasing of the developer notice
Alexander Ebert [Tue, 5 Sep 2023 14:32:13 +0000 (16:32 +0200)]
Slightly improve the phrasing of the developer notice

14 months agoSimplify the condition to order the packages
Alexander Ebert [Tue, 5 Sep 2023 14:31:41 +0000 (16:31 +0200)]
Simplify the condition to order the packages

14 months agoFix the indentation
Alexander Ebert [Tue, 5 Sep 2023 14:29:50 +0000 (16:29 +0200)]
Fix the indentation

14 months agoBlock parallel requests to install a package
Alexander Ebert [Tue, 5 Sep 2023 14:26:22 +0000 (16:26 +0200)]
Block parallel requests to install a package

14 months agoMerge branch '5.5'
Tim Düsterhus [Tue, 5 Sep 2023 12:58:21 +0000 (14:58 +0200)]
Merge branch '5.5'

14 months agoUpdate to `psr/http-message` 1.1
Tim Düsterhus [Tue, 5 Sep 2023 12:55:39 +0000 (14:55 +0200)]
Update to `psr/http-message` 1.1

14 months agoFix `license.tpl` showing official packages in the Plugin-Store section
Tim Düsterhus [Tue, 5 Sep 2023 12:20:05 +0000 (14:20 +0200)]
Fix `license.tpl` showing official packages in the Plugin-Store section

14 months agoFix a typo
Alexander Ebert [Tue, 5 Sep 2023 11:17:57 +0000 (13:17 +0200)]
Fix a typo

14 months agoRemove the legacy plugin store package search
Alexander Ebert [Tue, 5 Sep 2023 10:20:46 +0000 (12:20 +0200)]
Remove the legacy plugin store package search

14 months agoAdd the license page to the menu
Alexander Ebert [Tue, 5 Sep 2023 10:16:50 +0000 (12:16 +0200)]
Add the license page to the menu

14 months agoAllow description language in XSD/style.xsd
Tim Düsterhus [Tue, 5 Sep 2023 08:48:20 +0000 (10:48 +0200)]
Allow description language in XSD/style.xsd

14 months agoFix styleVariables.xsd
Tim Düsterhus [Tue, 5 Sep 2023 08:45:10 +0000 (10:45 +0200)]
Fix styleVariables.xsd

14 months agoHandle missing auth data and stale package lists
Alexander Ebert [Mon, 4 Sep 2023 18:16:09 +0000 (20:16 +0200)]
Handle missing auth data and stale package lists

14 months agoAdd a form to set up the license data
Alexander Ebert [Mon, 4 Sep 2023 16:13:23 +0000 (18:13 +0200)]
Add a form to set up the license data

14 months agoReplace the hard-wired data for the package server
Alexander Ebert [Thu, 31 Aug 2023 09:28:36 +0000 (11:28 +0200)]
Replace the hard-wired data for the package server

14 months agoImprove the visuals of the licensed products
Alexander Ebert [Wed, 23 Aug 2023 17:05:19 +0000 (19:05 +0200)]
Improve the visuals of the licensed products

14 months agoAdd the install functionality
Alexander Ebert [Wed, 23 Aug 2023 13:53:35 +0000 (15:53 +0200)]
Add the install functionality

14 months agoCheck which packages are installable
Alexander Ebert [Mon, 19 Jun 2023 11:42:54 +0000 (13:42 +0200)]
Check which packages are installable

14 months agoDetect already installed packages
Alexander Ebert [Sat, 17 Jun 2023 20:06:05 +0000 (22:06 +0200)]
Detect already installed packages

14 months agoAdd some reminders
Alexander Ebert [Sat, 17 Jun 2023 14:35:17 +0000 (16:35 +0200)]
Add some reminders

14 months agoBasic prototype for the license page
Alexander Ebert [Sat, 17 Jun 2023 14:26:25 +0000 (16:26 +0200)]
Basic prototype for the license page

14 months agoFix the handling of the individual SCSS for the dark mode
Alexander Ebert [Mon, 4 Sep 2023 14:44:38 +0000 (16:44 +0200)]
Fix the handling of the individual SCSS for the dark mode

See https://www.woltlab.com/community/thread/301281-individuelles-css-und-scss-dunkles-farbschema-nicht-immer-gespeichert/

14 months agoUpdate composer dependencies
Tim Düsterhus [Mon, 4 Sep 2023 10:49:31 +0000 (12:49 +0200)]
Update composer dependencies

14 months agoUpdate composer dependencies
Tim Düsterhus [Mon, 4 Sep 2023 10:39:14 +0000 (12:39 +0200)]
Update composer dependencies

14 months agoMerge pull request #5641 from WoltLab/promise-mutex
Alexander Ebert [Mon, 4 Sep 2023 10:11:21 +0000 (12:11 +0200)]
Merge pull request #5641 from WoltLab/promise-mutex

Implement a helper to prevent the parallel execution of callbacks

14 months agoImplement a helper to prevent the parallel execution of callbacks
Alexander Ebert [Mon, 4 Sep 2023 10:05:26 +0000 (12:05 +0200)]
Implement a helper to prevent the parallel execution of callbacks

14 months agoImprove the scroll behavior when editing messages
Alexander Ebert [Sun, 3 Sep 2023 14:58:00 +0000 (16:58 +0200)]
Improve the scroll behavior when editing messages

See https://www.woltlab.com/community/thread/301447-bearbeiten-eines-langen-beitrags-bringt-einen-ins-nirgendwo/

14 months agoFix the alignment of legacy dialog form buttons
Alexander Ebert [Sat, 2 Sep 2023 17:26:46 +0000 (19:26 +0200)]
Fix the alignment of legacy dialog form buttons

14 months agoInclude the extra information of AJAX exceptions
Alexander Ebert [Sat, 2 Sep 2023 17:18:24 +0000 (19:18 +0200)]
Include the extra information of AJAX exceptions

14 months agoImprove the stack traces generated by AJAX errors
Alexander Ebert [Sat, 2 Sep 2023 17:06:17 +0000 (19:06 +0200)]
Improve the stack traces generated by AJAX errors

14 months agoAdd the color scheme to the user editing form
Alexander Ebert [Fri, 1 Sep 2023 22:06:19 +0000 (00:06 +0200)]
Add the color scheme to the user editing form

See https://www.woltlab.com/community/thread/301258-preferred-color-scheme-option-is-not-available-in-edit-user-acp-options/

14 months agoApply `#[\Override]` to PHP DDL API where possible
Tim Düsterhus [Fri, 1 Sep 2023 12:04:41 +0000 (14:04 +0200)]
Apply `#[\Override]` to PHP DDL API where possible

14 months agoMerge remote-tracking branch 'origin/master'
Tim Düsterhus [Fri, 1 Sep 2023 09:53:08 +0000 (11:53 +0200)]
Merge remote-tracking branch 'origin/master'

14 months agoUpdate CKEditor npm dependencies
Tim Düsterhus [Fri, 1 Sep 2023 09:52:38 +0000 (11:52 +0200)]
Update CKEditor npm dependencies

14 months agoUpdate npm dependencies
Tim Düsterhus [Fri, 1 Sep 2023 09:52:10 +0000 (11:52 +0200)]
Update npm dependencies

14 months agoMerge branch '5.5'
Tim Düsterhus [Fri, 1 Sep 2023 09:51:30 +0000 (11:51 +0200)]
Merge branch '5.5'

14 months agoUpdate tslib
Tim Düsterhus [Fri, 1 Sep 2023 09:49:41 +0000 (11:49 +0200)]
Update tslib

14 months agoUpdate npm dependencies
Tim Düsterhus [Fri, 1 Sep 2023 09:48:41 +0000 (11:48 +0200)]
Update npm dependencies

14 months agoFix UploadFormField::maximumImageHeight() (#5638)
Olaf Braun [Fri, 1 Sep 2023 09:40:28 +0000 (11:40 +0200)]
Fix UploadFormField::maximumImageHeight() (#5638)

`$maximumImageWidth` instead of `$maximumImageHeight` was overwritten.

[Tim: Rewritten the commit message]

14 months agoUse "natural ordering" when sorting the ad locations
Marcel Werk [Thu, 31 Aug 2023 15:40:14 +0000 (17:40 +0200)]
Use "natural ordering" when sorting the ad locations

14 months agoFix the visuals of the search type button
Alexander Ebert [Wed, 30 Aug 2023 20:48:09 +0000 (22:48 +0200)]
Fix the visuals of the search type button

14 months agoExpose the html of the WYSIWYG form field in the parameters
Alexander Ebert [Wed, 30 Aug 2023 20:23:19 +0000 (22:23 +0200)]
Expose the html of the WYSIWYG form field in the parameters

See #5624

14 months agoMerge pull request #5637 from WoltLab/templatelistener-xsd
Tim Düsterhus [Wed, 30 Aug 2023 09:09:33 +0000 (11:09 +0200)]
Merge pull request #5637 from WoltLab/templatelistener-xsd

Inline the `woltlab_environment` type in XSDs

14 months agoInline the `woltlab_environment` type in XSDs
Tim Düsterhus [Wed, 30 Aug 2023 08:41:49 +0000 (10:41 +0200)]
Inline the `woltlab_environment` type in XSDs

Not all PIPs support the “all” environment, notably the templateListener PIP.
Thus the legal list of environments is now inlined to make it explicit and also
improve the readability of the XSDs.

Supporting the “all” environment for the templateListener PIP is not really
useful, as template names are rarely shared between frontend and ACP. It's
simple enough to register an explicit listener for each environment in the rare
case all of (templateName, eventName, templateCode) match up.

Fixes #5619

14 months agoSoft-deprecate <permissions> and <options> in templateListener.xml
Tim Düsterhus [Wed, 30 Aug 2023 08:34:12 +0000 (10:34 +0200)]
Soft-deprecate <permissions> and <options> in templateListener.xml

see #5075
Resolves #5632

14 months agoMerge branch '5.5'
Tim Düsterhus [Tue, 29 Aug 2023 10:17:28 +0000 (12:17 +0200)]
Merge branch '5.5'

14 months agoFix validation in UploadFormField::maximumImageWidth()
Olaf Braun [Tue, 29 Aug 2023 10:03:19 +0000 (12:03 +0200)]
Fix validation in UploadFormField::maximumImageWidth()

Closes #5636

[Tim: rewritten the commit message]

14 months agoFix validation in UploadFormField::maximumImageHeight()
Olaf Braun [Tue, 29 Aug 2023 10:02:41 +0000 (12:02 +0200)]
Fix validation in UploadFormField::maximumImageHeight()

see #5636

[Tim: rewritten the commit message]

14 months agoFix error when scrolling multiple times via JS
Marcel Werk [Mon, 28 Aug 2023 15:59:30 +0000 (17:59 +0200)]
Fix error when scrolling multiple times via JS

`_targetElement` was not reset if no callback was given.

14 months agoFix the initial value for the color scheme
Alexander Ebert [Mon, 28 Aug 2023 14:00:30 +0000 (16:00 +0200)]
Fix the initial value for the color scheme

The previous implementation did not verify if the selection is valid for the active style.

See https://www.woltlab.com/community/thread/301334-dunkles-farbschema-nur-anwenden-falls-vorhanden/

14 months agoMerge pull request #5635 from WoltLab/acp-links-in-mails
Marcel Werk [Mon, 28 Aug 2023 13:45:52 +0000 (15:45 +0200)]
Merge pull request #5635 from WoltLab/acp-links-in-mails

Fix links to the ACP in emails

14 months agoFix links to the ACP in emails
Marcel Werk [Mon, 28 Aug 2023 11:57:20 +0000 (13:57 +0200)]
Fix links to the ACP in emails

Links in emails always led to the frontend by mistake, even if `isACP` was set.

14 months agoUnify phrases
Marcel Werk [Mon, 28 Aug 2023 11:43:50 +0000 (13:43 +0200)]
Unify phrases

14 months agoMerge pull request #5634 from WoltLab/stacktrace-without-middleware
Alexander Ebert [Mon, 28 Aug 2023 11:18:32 +0000 (13:18 +0200)]
Merge pull request #5634 from WoltLab/stacktrace-without-middleware

Suppress stack frames from the middleware

14 months agoStop suppressing errors for `ini_get()`
Tim Düsterhus [Mon, 28 Aug 2023 10:39:25 +0000 (12:39 +0200)]
Stop suppressing errors for `ini_get()`

This function is infallible and will not emit any errors.

14 months agoFix page title in test.php
Tim Düsterhus [Mon, 28 Aug 2023 10:34:21 +0000 (12:34 +0200)]
Fix page title in test.php

14 months agoAdd the entry and exit point of middlewares to the stack
Alexander Ebert [Mon, 28 Aug 2023 10:22:52 +0000 (12:22 +0200)]
Add the entry and exit point of middlewares to the stack

14 months agoRevert "Remove check for `ini_parse_quantity`"
Tim Düsterhus [Mon, 28 Aug 2023 10:12:29 +0000 (12:12 +0200)]
Revert "Remove check for `ini_parse_quantity`"

see symfony/polyfill#442

This reverts commit 76b16ba4e89a7ff46cc2e1f79a158afc1c5e4c40.

14 months agoUse `FileUtil::getMemoryLimit()` in WCFSetup
Tim Düsterhus [Mon, 28 Aug 2023 09:59:07 +0000 (11:59 +0200)]
Use `FileUtil::getMemoryLimit()` in WCFSetup

14 months agoRemove check for `ini_parse_quantity`
Tim Düsterhus [Mon, 28 Aug 2023 09:54:50 +0000 (11:54 +0200)]
Remove check for `ini_parse_quantity`

This is now provided by Symfony's polyfill.

14 months agoUpdate composer dependencies
Tim Düsterhus [Mon, 28 Aug 2023 09:50:34 +0000 (11:50 +0200)]
Update composer dependencies

14 months agoMerge pull request #5633 from SoftCreatR/patch-1
Tim Düsterhus [Mon, 28 Aug 2023 07:31:41 +0000 (09:31 +0200)]
Merge pull request #5633 from SoftCreatR/patch-1

Update WSC_SRT_VERSION in test.php

14 months agoFix the handling of `<section>` as the dialog content’s root
Alexander Ebert [Sun, 27 Aug 2023 16:24:46 +0000 (18:24 +0200)]
Fix the handling of `<section>` as the dialog content’s root

See https://www.woltlab.com/community/thread/301310-warn-dialog-needs-to-be-unified/

14 months agoSuppress the border of boxes with `.boxBorderless`
Alexander Ebert [Sat, 26 Aug 2023 18:45:07 +0000 (20:45 +0200)]
Suppress the border of boxes with `.boxBorderless`

See https://www.woltlab.com/community/thread/301308-sidebar-ads-show-the-border-of-the-box-in-dark-theme/

14 months agoPrevent dialogs to take up the full available height
Alexander Ebert [Sat, 26 Aug 2023 18:40:13 +0000 (20:40 +0200)]
Prevent dialogs to take up the full available height

See https://www.woltlab.com/community/thread/301321-dialoge-k%C3%B6nnen-am-browserrand-kleben/

14 months agoInsert the editor stylesheet as the first style
Alexander Ebert [Sat, 26 Aug 2023 18:37:58 +0000 (20:37 +0200)]
Insert the editor stylesheet as the first style

This change allows overruling the editor’s CSS using the same selectors.

14 months agoReduce the `z-index` of the editor toolbar
Alexander Ebert [Sat, 26 Aug 2023 18:35:45 +0000 (20:35 +0200)]
Reduce the `z-index` of the editor toolbar

See https://www.woltlab.com/community/thread/301339-editor-beim-focus-scrollen-geht-%C3%BCber-das-men%C3%BC/