| #
1b2deed9 |
| 15-Sep-2023 |
fiwswe <fiwswe@fwml.de> |
Use str_starts_with/str_ends_with
|
| #
d4f83172 |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: line breaks
|
| #
26dfc232 |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Rector to rename print to echo calls
|
| #
5a5ec053 |
| 30-Aug-2023 |
Gerrit Uitslag <klapinklapin@gmail.com> |
reformat /lib/exe/ folder
|
| #
e3c3abf1 |
| 29-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector fixes to lib/exe
|
| #
36300e60 |
| 09-Sep-2022 |
Andreas Gohr <andi@splitbrain.org> |
opening up CSP headers for fetch.php resources
This drops the sandbox attribute as discussed in #3710 to re-enable inline display of PDFs in Safari again.
Dropping the sandbox attribute should also
opening up CSP headers for fetch.php resources
This drops the sandbox attribute as discussed in #3710 to re-enable inline display of PDFs in Safari again.
Dropping the sandbox attribute should also help with using navigational links within SVG files as discussed in https://forum.dokuwiki.org/d/20420-how-to-embed-svg-with-links-the-proper-way
It also allows the loading of fonts from within SVG files. This currently does not allow font loading from google fonts as asked for in #3709 though. I'm not sure if we should favor any font provider here.
show more ...
|
| #
8e9d8d55 |
| 24-Jun-2022 |
Andreas Gohr <andi@splitbrain.org> |
minor SVG improvements
* never try to use slika to resize SVGs - let the browser do it * use object-fit:cover for all images - this properly crops inside the browser if the backend didn't (like fo
minor SVG improvements
* never try to use slika to resize SVGs - let the browser do it * use object-fit:cover for all images - this properly crops inside the browser if the backend didn't (like for SVGs). currently dokuwiki template only - might be worth moving to default styles * show previews for SVGs in media manager
show more ...
|
| #
01648efd |
| 19-Nov-2020 |
Andreas Gohr <andi@splitbrain.org> |
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#
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
show more ...
|
| #
6cda96e3 |
| 14-Oct-2020 |
Andreas Gohr <andi@splitbrain.org> |
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 scriptabl
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.
show more ...
|
| #
bfca0246 |
| 12-Apr-2020 |
Sam <1631095+takuy@users.noreply.github.com> |
add new "MEDIA_RESIZE" event
|
| #
e1d9dcc8 |
| 15-Jun-2018 |
Andreas Gohr <andi@splitbrain.org> |
First go at moving the plugin classes into their own namespace
|
| #
ccc4c71c |
| 19-Feb-2019 |
Andreas Gohr <andi@splitbrain.org> |
adjusted the Input clases for PSR2
They are now in their own namespace.
|
| #
793c31f2 |
| 05-Mar-2014 |
Christopher Smith <chris@jalakai.co.uk> |
fix misspelled variable name,
|
| #
a0e46368 |
| 27-Jan-2014 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Re-order parameters to not break other callers
|
| #
d2affc24 |
| 27-Jan-2014 |
Gerry Weißbach <gerry.w@gammaproduction.de> |
Use original filename for Content-Disposition
In most cases this change will have no effect, but noes the response will use the filename that was originally requested. The downloaded filename can be
Use original filename for Content-Disposition
In most cases this change will have no effect, but noes the response will use the filename that was originally requested. The downloaded filename can be modified to something different as well. E.g. the siteexport plugin will make use of it.
show more ...
|
| #
77450f40 |
| 27-Nov-2013 |
lisps <stummp@loewen.de> |
media image can be resized by height (without width)
|
| #
d572baf8 |
| 21-May-2013 |
Klap-in <klapinklapin@gmail.com> |
Add check for token when resizing and caching external images
|
| #
7fb7960f |
| 22-Mar-2013 |
Christopher Smith <chris@jalakai.co.uk> |
refactor fetch to support unittesting
|
| #
0f4e0092 |
| 20-Mar-2013 |
Christopher Smith <chris@jalakai.co.uk> |
add a token to fetch urls requiring image resize/crop to prevent external DDOS via fetch
|
| #
1b8b28fa |
| 03-Mar-2013 |
Andreas Gohr <andi@splitbrain.org> |
there's no pragma: private
|
| #
a6c362b6 |
| 03-Mar-2013 |
Andreas Gohr <andi@splitbrain.org> |
max-age not allowed with no-cache
|
| #
3b6f95e6 |
| 03-Mar-2013 |
Andreas Gohr <andi@splitbrain.org> |
adjusted cache=0 headers again
|
| #
1c7d84be |
| 03-Mar-2013 |
Andreas Gohr <andi@splitbrain.org> |
fixed passed cache parameter
|
| #
4a516840 |
| 03-Mar-2013 |
Andreas Gohr <andi@splitbrain.org> |
handle public vs. private ressource in sendFile()
|
| #
add8678f |
| 01-Mar-2013 |
Andreas Gohr <andi@splitbrain.org> |
alternative fix for FS#2734
|