History log of /dokuwiki/inc/fetch.functions.php (Results 1 – 25 of 33)
Revision Date Author Comments
# 6c16a3a9 14-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


# 90fb952c 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: operator spacing


# 26dfc232 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Rector to rename print to echo calls


# 7d34963b 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow line breaks


# 177d6836 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: control flow whitespaces


# dccd6b2b 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

coding style: function call spacing


# d868eb89 30-Aug-2023 Andreas Gohr <andi@splitbrain.org>

codestyle adjustments: function declaration braces/spaces


# 24870174 29-Aug-2023 Andreas Gohr <andi@splitbrain.org>

Apply rector fixes to the rest of inc


# e71d33ca 19-Nov-2020 Andreas Gohr <andi@splitbrain.org>

scrutinizer fix


# 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 ...


# 6ce3e5f8 14-Jul-2019 Andreas Gohr <andi@splitbrain.org>

fixed some line length errors


# 8cbc5ee8 10-Jun-2019 Andreas Gohr <andi@splitbrain.org>

replaced deprecated utf8 functions

For now this uses full qualified namespaces, sensible imports may come
later.


# 64159a61 27-Apr-2018 Andreas Gohr <andi@splitbrain.org>

line lengths shortened

This makes sure all files use line lenghts shorter than 120 characters.

This is a quick fix. It might not always be the nicest change.


# 0c24c924 15-Jul-2015 Andreas Gohr <andi@splitbrain.org>

remove pragma:no-cache header. closes #1201

The pragma header is only defined for requests not for responses. The
Cache-Control header should be used in responses.


# 79e79377 07-Jan-2015 Andreas Gohr <gohr@cosmocode.de>

Remove error supression for file_exists()

In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PH

Remove error supression for file_exists()

In an older version of PHP a file_exists() call would issue a warning
when the file did not exist. This was fixed in later PHP releases. Since
we require PHP 5.3 now, there's no need to supress any error here
anymore. This might even give a minor performance boost.

show more ...


# 8da2ebf4 22-Dec-2014 Gerry Weißbach <gerry.w@gammaproduction.de>

Merge remote-tracking branch 'splitbrain/master'


# 42ea7f44 01-Oct-2014 Gerrit Uitslag <klapinklapin@gmail.com>

Many PHPDocs, some unused and dyn declared vars

many PHPDocs
some unused variables
some dynamically declared variables declared


# 04585e6c 29-Aug-2014 Gerry Weißbach <gerry.w@gammaproduction.de>

rfc2231 compatible encoding for header()

This is only used in the filename header field and ensures correct
interpretation of an encoded filename. This is will be needed
especially for download of f

rfc2231 compatible encoding for header()

This is only used in the filename header field and ensures correct
interpretation of an encoded filename. This is will be needed
especially for download of files with umlauts with an Internet Explorer.

show more ...


# 40e0b444 15-Feb-2014 Dominik Eckelmann <deckelmann@gmail.com>

use http_sendfile correct


# 2fd6745d 27-Jan-2014 Gerry Weißbach <gerry.w@gammaproduction.de>

Re-order parameters to not break other callers

Needs a check for null now.


# 499df7e5 27-Jan-2014 Gerry Weißbach <gerry.w@gammaproduction.de>

nop


# 32c584aa 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 ...


# cc036f74 01-Aug-2013 Klap-in <klapinklapin@gmail.com>

remove hash for external images, but use token url parameter instead


# b1ffadaa 21-Jul-2013 Klap-in <klapinklapin@gmail.com>

Merge remote-tracking branch 'origin/master' into fetchimagetokexternal


12