Commit Graph

328 Commits

Author SHA1 Message Date
Andreas Gohr df9e4a18ef automatically prune old logs
This adds a new configuration that allows to define how many logfiles
per facility should be kept. Old files are pruned daily via the task
runner.
2023-12-22 19:30:31 +01:00
Andreas Gohr 486f82fcde add setting to define the samesite cookie policy
As mentioned in
https://github.com/dokuwiki/dokuwiki/pull/3994#pullrequestreview-1473052428
there might be occasions when users might want to change the policy to a
stricter one or the somewhat more lenient Lax implementation of current
browsers.
2023-08-21 18:17:26 +02:00
Andreas Gohr b9b8bba7c6 add webp to default mime types. #3816 2023-01-31 09:41:21 +01:00
Andrew Dawes 9612843ec5
Fixed some typos 2022-12-05 20:48:46 +01:00
Andreas Gohr bbe6b3a78b Remove the htmlok and phpok embedding options
Both options have grave security implications and novice users seem to
ignore advice about them. In the last decades I never came across a wiki
that had legitimate use of these options.

If someone needs the functionality, it can easily be added back using a
plugin. But I prefer to give users one less option to shoot themselves
in the foot.

Removal of the translations for the config strings can follow after this
has been merged.
2022-10-12 18:32:16 +02:00
Andreas Gohr be6462f4bb log warnings to error log
This introduces an error handler that will log warnings, including a
stack trace in the error log. This should help plugin and core authors with
identifying cases of uninitilized variables in PHP8+ environments.

A feature flag (default off) will let users temporarily disable the
display of warnings in the frontend. This should allow the usage of not
yet upgraded plugins in many cases. In the future the flag can be
removed again.
2022-08-13 13:18:50 +02:00
Timo Richter 3df364a338 CORS on XMLRMPC API
This allows setting a CORS header to make the xmlrpc API accessible from
JavaScript clients directly in the browser.
2022-05-12 14:11:14 +02:00
Andreas Gohr d8ab874693 Revert "Merge pull request #3039 from takuy/video-attributes"
This reverts commit 408d79f785, reversing
changes made to b7c67f83bd.
2021-12-26 22:56:06 +01:00
Andreas Gohr 408d79f785
Merge pull request #3039 from takuy/video-attributes
Add handling for video embed attributes
2021-12-20 21:52:47 +01:00
Andreas Gohr 66ed1b5e1a add missing google interwiki link. fixes #3502 2021-06-08 19:55:44 +02:00
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 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
Michael Stapelberg 13dfa018fb
mime.conf: add SVG image mime type
This allows uploading and serving SVG images.
2020-11-18 22:31:41 +01:00
Andreas Gohr cad4fbf6e2 added logging configuration
Log facitlities can now be disabled. By default only debug is disabled.
It might make sense to by default disable deprecated as well?

Debug logging is now independend of the allowdebug method. allowdebug
was often used in two ways: for displaying errors directly to the user
and for logging to the debug log. Now it only controls the former.
2020-08-13 20:28:52 +02:00
Andreas Gohr c4fa5eb261
Merge pull request #3000 from splitbrain/license-lang
use install.php $LC and en default for license url language code
2020-05-01 19:32:25 +02:00
Sam 50598979bb only pass around videoAtts if it's a video
try to make tests happy again

another try at fixing tests

Delete local.php.bak.php

more test fixes

one more (lol)

one more
2020-04-06 02:05:44 -04:00
Sam 4a572c5a76 add options & defaults to config, no* counterparts 2020-04-06 02:05:44 -04:00
Aurélien Martin 7b299f22af
Add option rss_show_deleted 2020-03-09 17:17:09 -04:00
Phy 8b68e0b898
use install.php $LC and en default for license url language code
install.php includes license.php without $conf array so we need to determine the value.

This fixes #2999.
2020-03-08 18:20:04 -04:00
Michael Große fc6b11d22a
Add feature flag for deferred javascript
This adds a feature flag for the jQuery and main-js requests added in
 #2786 and #2958. This adds only a single feature flag since deferring
jQuery without deferring the main javascript request is likely to cause
errors and confusion.

The feature flag defaults to "on" as this should be unproblematic except
for a few plugins. Also, with this flag being on by default, it should
see more usage and is more likely to uncover existing issues.

This feature flag should be removed once this feature is deemed safe.
2020-01-26 19:47:16 +01:00
Rainbow Spike 7116095956
Languageable CC licenses 2020-01-20 11:45:50 +10:00
Phy 9ec1015a9e
change default of passcrypt to bcrypt #2936 2019-12-11 11:05:51 -05:00
Petr Kajzar 5dc95dfd3f
Update license links to HTTPS
If the website provides a secure connection, it is better not to rely on correct permanent redirect (HTTP 301) from the insecure one.
2019-11-30 20:54:28 +01:00
Phy 925105e82b clientIP: add trustedproxy, return first untrusted IP instead of the last one
This fixes #2828, where malicious clients passed in customized HTTP header to keep its IP address off records.

This is inspired by Sympony's Request::setTrustedProxies, but I don't want to implement everything including IP CIDR matching (IPv4 + IPv6), so I decided to reuse the local IP checker in place powered by regexp. Now admins can customize this "local" (trusted) proxy list using $conf['trustedproxy'], and by default it will allow any local IPs.

If in the future there is a need to implement array-based CIDR matching, $conf['trustedproxies'] can be used for the new config name.
2019-10-20 20:31:40 -04:00
StarArmy aa8728f884
add UGC hint 2019-09-12 15:05:51 -04:00
Andy Green b794fbf5c8
add wpru interwiki prefix 2019-03-31 11:42:45 +03:00
Andreas Gohr 69653b56c8
Merge pull request #2632 from metbril/patch-2
Add FYI
2019-03-30 21:56:18 +01:00
Elan Ruusamäe 160b2db839
conf: remoteuser doc inprovement 2019-01-02 16:45:48 +02:00
Robert 5612c3fbed
Add FYI 2018-12-17 16:09:11 +01:00
Andreas Gohr fdbbfed91f
Merge pull request #2414 from splitbrain/nosafemode
removed safemode hack
2018-06-26 09:58:43 +02:00
Alexander Achenbach 21c01779b1 Fix .htaccess files for Apache 2.4 (and 2.2)
Refer to module by suitable file name (mod_*.c).
Test for mod_authz_core.c (instead of mod_authz_host.c) to properly
detect Apache 2.4 and avoid false positive for Apache 2.2.
2018-06-17 16:48:11 +02:00
Andreas Gohr fe227084a6 removed safemode hack
Safemode has been removed in PHP 5.4.0. We finally no longer need to
deal with this insanity.
2018-06-07 17:24:43 +02:00
Andreas Gohr 13ce475d48 shortened new search configs
shorter names are more in line with what we already use, makes less
layout problems in the documentation and is easier to type when telling
people about it.
2018-04-11 14:39:04 +02:00
Michael Große 5c0b2e60a2
Merge pull request #2286 from splitbrain/betterCoreSearch
Better core search
2018-04-05 09:51:45 +02:00
Michael Große d09b5b6441
feat(search): add config options to adjust default behavior
This adds two new config options:

`search_limit_to_first_ns`:
Limit the search to the current X namespaces. When a search is executed
from a page within a deeper namespace, the first X namespaces will be
added as filter.
Possible use case could be with language namespaces to ensure that the
default search is initially within the current language.

`search_default_fragment_behaviour`:
Option to specify the default fragment search behavior
2018-03-22 14:22:41 +01:00
Michael Große 6f8582363c
feat: use style replacements for background and theme color
This also adds the default theme color for the DokuWiki template as the
green from the existing links.
2018-02-01 11:52:19 +01:00
Michael Große ff1e4eaee6
fix: add default manifest.json
This should have been part of the previous commit
5e0255e36b

Some simple static defaults for the PWA manifest
2018-01-24 15:19:35 +01:00
Andreas Gohr 345058f766
Merge pull request #2077 from schplurtz/vtt-tracks
Support Web Video Text Tracks Format subtitles
2018-01-03 13:48:49 +01:00
Lukas Rademacher 5f43dcf497 Support for configurable e-mail return path 2017-10-28 22:24:54 +02:00
Schplurtz le Déboulonné 0877a1f193 Support Web Video Text Tracks Format subtitles 2017-08-16 00:32:41 +02:00
Peter Mosmans f6796c6e10 Fix minor typo in the distributed user configuration 2017-05-23 09:22:46 +02:00
Andreas Gohr 61537d4730 split off jquery from other JS and add CDN option #1766
jQuery (and UI and Migrate) are now loaded separately from the rest of
the JavaScript. This adds at least one HTTP request more but has some
advantages:

* browsers can cache it independently
* the cache is only invalidated when versions update
* we do not apply any transformations (replacements, minimizing, etc) on
  this code anymore which makes our dispatcher faster for the other JS
* browsers seem to load (not execut) both (jquery and other) parallel,
  which might increase download speed a bit

This split allowed for the introduction of a new config: jquerycdn. When
enabled the 3 jquery files are loaded from jQueries CDN. This adds
another two HTTP requests but:

* since it's another host those files do not apply to the 4 request per
  host limit and can be loaded (not executed) in paralell which might
  increase download speeds a bit
* the CDN is distributed worldwide which means files are requested from
  the closest location, increasing the download speeds
* since these files/CDN are very popular, chances are high that people
  already have them cached in their browsers, reducing the download time
  to 0 and effectiely halving the javascript needed to download

The option currently defaults to 'off', but I would argue 'on' would be
the better default.
2016-11-26 14:29:40 +01:00
Andreas Gohr 21ced9d012 simplified amazon interwiki links. closes #1588 2016-06-02 21:46:05 +02:00
Andreas Gohr 7a96431840 inline small images into the CSS by default
Since we no longer support old IE 8 and below we can enable data uris
by default now. The picked size here is open for discussion.

A typical HTTP header for a static image ressource is about 200 to 250
bytes at dokuwiki.org. I picked twice of that as the cutoff for inlining
images.
2016-04-18 21:12:32 +02:00
Andreas Gohr 54c0fa7c65 Merge pull request #774 from MartijnRas/master
remoteuser - Patch for default setting and improved checking in hasAccess()
2016-03-12 11:17:01 +01:00
Werner Flamme/WKDV 6e2d09ae3b Adapt .htaccess files for Apache 2.4 2015-12-07 15:20:20 +01:00
Andreas Gohr 1de26ac15c adjust PHP function interwiki shortcut #1402
Skips one (sometimes flaky) redirect
2015-11-27 10:08:20 +01:00
polyzen 97c7326722 update Creative Commons licenses to 4.0. fixes #1286
https://wiki.creativecommons.org/wiki/License_versions
https://wiki.creativecommons.org/wiki/Frequently_Asked_Questions#Why_should_I_use_the_latest_version_of_the_Creative_Commons_licenses.3F
2015-09-05 18:21:38 -04:00
Patrick Brown ac1654273a Remove splitbrain.org interwiki link 2015-07-23 13:04:45 -04:00