Commit Graph

4685 Commits

Author SHA1 Message Date
Andreas Gohr 413313a155 Merge branch 'logging'
* logging:
  added JavaScript based filter mechanism
  added logging configuration
  replaced out calls to dbglog with new Logger calls
  added convenience methods to log to our default facilities
  added logviwer admin plugin
  added log dir to git
  central logging mechanism
2020-12-03 20:01:57 +01:00
Andreas Gohr e8baa3e847
Merge pull request #3307 from Rainbow-Spike/patch-3
Fixing of cell width
2020-12-03 19:58:23 +01:00
Andreas Gohr bae9e2a144
Merge pull request #3343 from splitbrain/bug3271
work around disabled php_strip_whitespace. fixes #3271
2020-12-03 19:57:44 +01:00
ANDRE BASSANI DE FREITAS a7d03b81e6 translation update 2020-11-25 23:56:40 +01:00
Andreas Gohr 5459b9fa38 Merge branch 'pr/3240'
* pr/3240:
  usermanager CLI: more cleanup
  usermanager CLI: use success messages
  usermanager CLI: fix parameter order for creating users
  usermanager CLI: catch plugin signalled error messages
  abort early when no auth backend is available
  type hints and cleanup
  typos
  remove unused variable
  add addToGroup and removeFromGroup
  initial usermanager cli
2020-11-25 22:18:36 +01:00
Andreas Gohr 3dc79ed872 usermanager CLI: more cleanup 2020-11-25 22:17:40 +01:00
Andreas Gohr 1a88e28379 usermanager CLI: use success messages
This makes it more consistent with the other tools
2020-11-25 22:17:01 +01:00
Andreas Gohr 4fe4fe89aa usermanager CLI: fix parameter order for creating users 2020-11-25 22:06:24 +01:00
Andreas Gohr 80fb44d96c usermanager CLI: catch plugin signalled error messages
Plugins may prevent user modifications and will use msg() to tell why.
This will catch the messages and print them on CLI as well
2020-11-25 22:02:09 +01:00
Andreas Gohr e56df87425 abort early when no auth backend is available 2020-11-25 22:01:42 +01:00
Andreas Gohr 44c2bd9127 type hints and cleanup 2020-11-25 21:49:23 +01:00
Andreas Gohr f015cb7680
Merge pull request #3344 from splitbrain/smileys
SVG based smileys
2020-11-25 20:58:40 +01:00
Andreas Gohr b09504a9ba SVG based smileys
This patch replaces our old gif based smileys by SVG based ones from the
Twemoji project. This allows for scaling the emojis with the text
they're used in.
2020-11-20 00:46:01 +01:00
Andreas Gohr 0465ea44b5
Merge pull request #3310 from splitbrain/mediacsp
Restrictive Content-Security-Policy for media #1045
2020-11-19 21:13:46 +01:00
Andreas Gohr 571a8adbb8 work around disabled php_strip_whitespace. fixes #3271 2020-11-19 20:51:22 +01:00
Andreas Gohr 01648efd47 Media CSP: omit script-src and add frame-ancestors
See comments for details:

https://github.com/splitbrain/dokuwiki/pull/3310#discussion_r506909727
https://github.com/splitbrain/dokuwiki/pull/3310#discussion_r506913304
2020-11-19 15:17:42 +01:00
Petr Kajzar 079f521b03 translation update 2020-11-14 09:21:11 +01:00
Thien Hau b22e7f793f translation update 2020-10-31 15:21:39 +01:00
GHSRobert Ciang 0c3086bb9d translation update 2020-10-30 07:01:05 +01:00
GHSRobert Ciang 45a8f80288 translation update 2020-10-24 16:36:03 +02:00
qezwan fe23cd0436 translation update 2020-10-16 01:16:15 +02:00
Andreas Gohr 6071f0eef3 added JavaScript based filter mechanism 2020-10-15 12:19:55 +02:00
Andreas Gohr 6cda96e3cf Restrictive Content-Security-Policy for media #1045
This adds a CSP header for all media delivered through our fetch.php
dispatcher. This should revent any scripts etc. to be executed when
scriptable media, like SVG is used.

Suggestions on finetuning the policy are welcome.

The policy is added to the MEDIA_SENDFILE event, so plugins can easily
influence it. The way it is passed as an array should make it easier to
modify from plugins as well.

I put the mechanism to send the header into it's own class in the HTTP
namespace. Additional methods from inc/httputils could be moved here
later. The method might also be interesting for #2198 and #1676.
2020-10-14 15:10:47 +02:00
Michael Große 626992ac3e fix: mark inputs of styling plugin as required
While this cannot ensure that the value is valid, it should prevent
accidental saving of an empty field, which crashes the less compiler.

Fixes #2246
2020-10-14 14:18:28 +02:00
Andreas Gohr a7e2efd2e2 replace deprecated function calls #3266 2020-10-13 15:29:48 +02:00
Andreas Gohr 0afbc17471
Merge pull request #3198 from ssahara/form
refactor html_* functions into Ui class member using Form\Form class
2020-10-13 13:42:24 +02:00
Gerrit Uitslag 2fb084b800
Merge branch 'master' into lang_update_68_1590781642 2020-10-12 21:45:01 +02:00
Rainbow Spike 02b69dbb1d
Fixing of cell width 2020-10-12 09:58:42 +10:00
Wrya a178b56610 translation update 2020-10-10 07:36:18 +02:00
Gerrit Uitslag 4bc46460c7
Merge pull request #3292 from dokuwiki-translate/lang_update_173_1602144683
Translation update (ckb)
2020-10-08 11:30:42 +02:00
Andreas Gohr 594400868e refresh user cache in plain auth on user modifying
When a user login was renamed, the user appeared twice. Once as the old
user and once as the new user.
2020-10-08 10:54:10 +02:00
Wrya 0cc185e1de translation update 2020-10-08 10:16:42 +02:00
qezwan 29d503b13d translation update 2020-10-07 22:51:12 +02:00
qezwan 3a0e3c9096 translation update 2020-10-07 14:11:10 +02:00
Gerrit Uitslag e9ded7184a
Merge branch 'master' into lang_update_145_1601930642 2020-10-05 23:50:17 +02:00
Gerrit Uitslag c63d8a8587
Merge branch 'master' into lang_update_144_1601929169 2020-10-05 23:46:49 +02:00
qezwan a0c85aa6fc translation update 2020-10-05 23:30:37 +02:00
qezwan 4197f8f130 translation update 2020-10-05 22:45:09 +02:00
qezwan 66de2ac1b1 translation update 2020-10-05 22:20:35 +02:00
Andreas Gohr 0ccf1f22f8
Merge pull request #3253 from splitbrain/issue3250
don't crush tables too narrow. fixes #3250
2020-09-08 08:38:18 +02:00
Frank Long 98c80af32c
Update translation
選擇 =>Traditional Chinese
选择 => Simplified Chinese
2020-09-03 19:48:49 +08:00
Endrit Callaki ad4420a917 translation update 2020-09-03 01:15:52 +02:00
Andreas Gohr 76e0afa4d8 don't crush tables too narrow. fixes #3250
This ensures that the table wrapper has at least 50% of the page width
available. This allows small tables still be besides floating elements
like images or the TOC, but larger tables will get the full width.
2020-09-02 20:47:12 +02:00
Henry Pan a3cafac5ce
Merge pull request #3246 from dokuwiki-translate/lang_update_126_1598847090
Translation update (zh)
2020-08-31 00:21:18 -04:00
Phy e3c16617b2 translation update 2020-08-31 06:16:12 +02:00
Henry Pan b43f233b54
Merge pull request #3222 from giterlizzi/master
Added confirmation dialog for Revert action menu
2020-08-31 00:14:02 -04:00
Karsten Kosmala 2bf5aa0cc8 typos 2020-08-27 14:27:13 +02:00
Karsten Kosmala c93d7d342d remove unused variable 2020-08-27 14:13:01 +02:00
Karsten Kosmala ae26f74ede add addToGroup and removeFromGroup 2020-08-27 14:07:52 +02:00
Karsten Kosmala 7faa86fad4 initial usermanager cli 2020-08-26 14:36:30 +02:00