Commit Graph

12434 Commits

Author SHA1 Message Date
Andreas Gohr 31afae8a52 allow admin components to skip being shown in the admin menu
This is related to #4249. At least the farmer plugin provides a top
level admin component and several sub components which are loaded from
the top component. For this use case it makes sense to be able to hide
components from the admin interface. Default remains to show all.
2024-04-16 13:48:47 +02:00
Andreas Gohr 821c061a6c move ldap debug statement
See https://forum.dokuwiki.org/d/22179-dokuwiki-and-openldap-login-failing-with-no-srch/4

This was probably the result of a messy merge.
2024-04-16 09:24:32 +02:00
Andreas Gohr 38a55fff91
Merge pull request #4263 from dregad/grammar
Grammar: removed on, not removed in (date)
2024-04-11 19:07:02 +02:00
Damien Regad 606abce6e7 Grammar: removed on, not removed in (date) 2024-04-11 10:12:05 +02:00
Andreas Gohr 0f0ec3b471
Merge pull request #4220 from dokuwiki/csp-nonce
CSP nonce handling
2024-04-10 15:17:33 +02:00
Andreas Gohr f55c50118e
Merge pull request #4256 from Zweihorn/patch-1
Update deletedFiles.yml with improved workflow
2024-04-10 15:08:30 +02:00
Andreas Gohr 99420adc4a
Merge pull request #4249 from dokuwiki/fix-plugin-component-handling
fix listing of plugin components
2024-04-10 15:05:41 +02:00
Andreas Gohr 99a3dafa39 increase API version for new call, remove unused parameter 2024-04-10 15:03:35 +02:00
Andreas Gohr fb93418dc0 remove obsolete TODO comment 2024-04-10 14:59:00 +02:00
Andreas Gohr 6e7c7e99b7
Merge pull request #4247 from opheliagame/feature/#4148
added API core.getMediaUsage
2024-04-10 14:57:36 +02:00
Andreas Gohr 8f14ce1c64
Merge pull request #4260 from dokuwiki-translate/lang_update_844_1712411679
Translation update (br)
2024-04-10 14:56:42 +02:00
mrgn c17acf8884 translation update 2024-04-06 15:55:47 +02:00
Gerrit Uitslag 259fa288cc
Merge pull request #4258 from dokuwiki-translate/lang_update_843_1712320578
Translation update (no)
2024-04-06 00:44:22 +02:00
Philip Gabrielsen 25df03c8b9 translation update 2024-04-05 14:41:44 +02:00
Zweihorn 39a79d268a
Update deletedFiles.yml with the current ISO date.
Finally, the list of newly removed entries receives a header "# removed in $(date -I)" with the current ISO date.
2024-04-02 14:49:25 +02:00
Gerrit Uitslag e624ad5e6c
Merge pull request #4233 from dokuwiki/bot/autofix
🤖 Automatic code style fixes
2024-04-01 23:08:48 +02:00
Zweihorn 3d8dbb19b9
Update deletedFiles.yml with improved workflow
major improvements are:
- cleans this file from any re-introduced file
- adds deleted files to the top of the list
- takes extra care of full path names (i.e. "^$E$" and "^$F$") to avoid cluttering grep with e.g., .txt and .txt_bak files
- uses data/deleted.files.tmp as lock file to produce a single trailing line only after adding any deleted files (thus the "cp" in the first "awk") and removes it (the "mv" in second "awk")
2024-04-01 10:38:04 +02:00
splitbrain 3f8a89e5a2 🤖 Rector and PHPCS fixes 2024-03-27 13:12:48 +00:00
Andreas Gohr f51673e590 fix listing of plugin components
Plugins may have one main component of a type or they might have
multiple of the same type in a subdirectory.

Sometimes they may have both. This is often the case for organically
grown plugin, commonly with helper classes where a helper.php exists
first only to be extended by helper/*.php files later.

This patch fixes the listing of plugin(components) by type in the plugin
controller.

It also adjusts bin/plugin.php to handle plugin CLI components.
2024-03-27 14:08:16 +01:00
Andreas Gohr 4c1ed9da81 usermanager: initialize auth sytem later
This prevents header errors when inspecting the CLI component in
plugin.php
2024-03-27 14:06:17 +01:00
Andreas Gohr ed46af861c disable RemoveUnusedConstructorParamRector
At least until rectorphp/rector#8580 is fixed
2024-03-27 13:21:16 +01:00
Anushka Trivedi 885b0fb0cd
added API core.getMediaUsage 2024-03-21 21:30:51 +05:30
Andreas Gohr 8f3e80a222
Merge pull request #4245 from nelson-ion/master
Language patch pt-br for login.txt
2024-03-18 20:57:39 +01:00
Nelson Ion 992cc866c9
Merge pull request #1 from nelson-ion/language-patch-pt-br
Language patch pt-br for login.txt
2024-03-18 15:04:17 -03:00
Nelson Ion 1c8e20e312
Language patch pt-br for login.txt 2024-03-18 15:00:37 -03:00
Andreas Gohr dfaf0747ed Support b and x variants for bcrypt hashes
Prompted by https://forum.dokuwiki.org/d/22108-authpdo-with-postgres-and-lemmy/3

As stated on https://stackoverflow.com/a/36225192

> there is no difference between 2, 2a, 2x, 2y, and 2b. If you wrote your
> implementation correctly, they all output the same result.
2024-03-13 15:44:23 +01:00
Andreas Gohr 4d2a091249 increase github action versions 2024-03-11 15:33:34 +01:00
Andreas Gohr eb130b95b4
Merge pull request #4240 from FailedCode/fix/3811-tests-the-at-matcher-has-been-deprecated
Tests: The at() matcher has been deprecated
2024-03-11 09:38:25 +01:00
FailedCode 2a113f4663 Tests: The at() matcher has been deprecated
fixes #3811

Replaces at() with withConsecutive() in these tests:

- TestOfLexer::testSinglePattern
- TestOfLexer::testMultiplePattern
- TestOfLexerModes::testIsolatedPattern
- TestOfLexerModes::testModeChange
- TestOfLexerModes::testNesting
- TestOfLexerModes::testSingular
- TestOfLexerModes::testUnwindTooFar
- TestOfLexerHandlers::testModeMapping
- TestOfLexerByteIndices::testIndex
- TestOfLexerByteIndices::testIndexLookaheadEqual
- TestOfLexerByteIndices::testIndexLookaheadNotEqual
- TestOfLexerByteIndices::testIndexLookbehindEqual
- TestOfLexerByteIndices::testIndexLookbehindNotEqual
2024-03-09 17:47:38 +01:00
Gerrit Uitslag a6016e3ec6
Merge pull request #4234 from dokuwiki-translate/lang_update_837_1709730245
Translation update (de)
2024-03-06 14:10:43 +01:00
Christoph 8ff79746cf translation update 2024-03-06 14:06:15 +01:00
Andreas Gohr 6995fd7756
Merge pull request #4224 from dokuwiki/apicontenttype
API: ignore charset when checking content types
2024-03-05 15:11:41 +01:00
Andreas Gohr f604629e44
Merge pull request #4225 from dokuwiki/strcompatibility
adjust compatibility string methods. fixes #4221
2024-03-05 15:09:23 +01:00
Andreas Gohr b3beabcb2c
Merge pull request #4230 from dokuwiki-translate/lang_update_830_1709550808
Translation update (fr)
2024-03-05 15:09:01 +01:00
Andreas Gohr c13ef3ba1d composer updates 2024-03-05 15:08:02 +01:00
Schplurtz le Déboulonné 5824a753c1 translation update 2024-03-04 12:16:14 +01:00
Andreas Gohr 7bb40883ca adjust compatibility string methods. fixes #4221
This uses the implementations from https://github.com/symfony/polyfill-php80

Not only does it fix signature compatibility by accepting null strings
but it also adjust the handling of falsy values (like 0)
2024-02-22 19:00:44 +01:00
Andreas Gohr ba15f985c4 API: ignore charset when checking content types
We still expect all communication to be in UTF-8, but we really don't
need a charset attribute for that.

fixes #4218, replaces #4219
2024-02-22 18:22:47 +01:00
Gerrit Uitslag ff6a7a9d5f
Merge pull request #4223 from dgvirtual/lt_translation_update
Fix error I left in the lithuanian translation file
2024-02-22 00:47:39 +01:00
Donatas Glodenis 791b191cbc fix breaking error 2024-02-21 23:58:29 +02:00
Gerrit Uitslag 328e7dfdc0
Merge pull request #4222 from dgvirtual/lt_translation_update
Updated Lithuanian translation
2024-02-21 21:50:08 +01:00
Donatas Glodenis 6595e6c8fa Updated Lithuanian translation 2024-02-21 22:30:39 +02:00
Andreas Gohr a77ab274d6 introduce a template function to output a inline script
This handles the output of a potentially available nonce.
2024-02-21 15:56:24 +01:00
Andreas Gohr e0aa67753c move JS detection to default script
This moves the little helper that will remove a "no-js" class from the
header element as soon as JavaScript is detected from the dokuwiki
template to our default inline script that also initializes the JSINFO
array.

This ensures that this inline script is run with a nonce (if available).
See #3788 for more infor
2024-02-21 15:51:21 +01:00
Andreas Gohr e5d413b07e Use environment provided NONCE for inline scripts. #3788
When an outside source wants to set a restrictive CSP, it can use a
nonce to allow inline scripts instead of using 'unsafe-inline'. This
nonce can be passed on via the environment variable NONCE and will be
used in tpl_metaheaders to tag our inline JS initializations.

An update to the cspheaders plugin should be made to provide a nonce as
well.
2024-02-21 15:25:59 +01:00
Andreas Gohr 3d106cfbb8 remove ols xhtml compatibility CDATA comments
We really don't need these anymore for modern browsers.
2024-02-21 15:19:06 +01:00
Andreas Gohr f2a2bc72e5 remove old IE conditionals from script loading
We really need not to think about IE anymore
2024-02-21 15:15:35 +01:00
Gerrit Uitslag e05e1bd971
Update bug_report.yml 2024-02-21 11:25:14 +01:00
Andreas Gohr 3f815ae37e bug template improvments
* maybe fix auto-tagging
* explicitly mention SSO as an environment to provide
* mention configruartion settings as environment data
2024-02-18 16:06:56 +01:00
Andreas Gohr 9e5ebb620a do not delete random_compat library. fixes #4214 2024-02-18 15:48:13 +01:00