History log of /dokuwiki/inc/common.php (Results 1 – 25 of 526)
Revision Date Author Comments
# 33cb4e01 03-Jun-2025 Andreas Gohr <gohr@cosmocode.de>

Make is_ssl and baseurl use proper proxy checks

This should not only address #4455 but also ensures that the related
headers are only used when they come from a trusted reverse proxy chain.


# 564b5cbf 13-Jan-2025 Andreas Gohr <andi@splitbrain.org>

Merge pull request #4389 from dokuwiki/buildquery

use http_build_query() in buildURLparams()


# 98b599a6 09-Jan-2025 splitbrain <86426+splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes


# d5dd5d1b 09-Jan-2025 Andreas Gohr <andi@splitbrain.org>

use renamed trustedproxies setting in tests


# 2f828abf 09-Jan-2025 Andreas Gohr <andi@splitbrain.org>

style fix


# 2aba9aed 09-Jan-2025 Andreas Gohr <andi@splitbrain.org>

Merge branch 'pr/3815' into clientIP

* pr/3815:
Move IP functions into a class
Factor out IP address functions; all proxies must be trusted
Fix clientIP() returning the wrong address


# 6cc6a0d2 09-Jan-2025 Andreas Gohr <andi@splitbrain.org>

use http_build_query() in buildURLparams()

buildURLparams() is used all throughout the code, but its implementation
was overly simplistic. This changes it to use the much better builtin
http_build_q

use http_build_query() in buildURLparams()

buildURLparams() is used all throughout the code, but its implementation
was overly simplistic. This changes it to use the much better builtin
http_build_query() function. This allows for correct encoding of array
values or deeper nested structures.

show more ...


# 8407f251 02-Dec-2024 splitbrain <86426+splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes


# 53c68e5c 22-Nov-2024 Andreas Gohr <andi@splitbrain.org>

replace deprecated utf8_encode #4354


# 8b19906e 30-Oct-2024 Andreas Gohr <andi@splitbrain.org>

change use order for codesniffer happyness


# b3894732 30-Oct-2024 splitbrain <86426+splitbrain@users.noreply.github.com>

�� Rector and PHPCS fixes


# db926724 26-Jan-2024 Andreas Gohr <andi@splitbrain.org>

Replace strftime with Intl ICU. Fixes #3573

This uses a class that maps strftime placeholders to the appropriate ICU
patterns. I am using the fallback-intl branch here which provides an
English-only

Replace strftime with Intl ICU. Fixes #3573

This uses a class that maps strftime placeholders to the appropriate ICU
patterns. I am using the fallback-intl branch here which provides an
English-only fallback when the intl extension is not available.

Core has only two places where strftime is used: dformat() and the
SimplePie feed parser. Both are adjusted with this patch. For the latter
a custom Item class had to be registered. For better separation all our
FeedParser classes have been moved to the Feed namespace where our
FeedCreator classes already reside.

Note that this will currently be a degration for users without intl as
it will fall back to date and not to the still available strftime.

show more ...


# 5f21556d 26-May-2023 Damien Regad <dregad@mantisbt.org>

Fix undefined array key warning


# 102528bd 14-Sep-2023 fiwswe <53953985+fiwswe@users.noreply.github.com>

Fix style error


# 6c16a3a9 14-Sep-2023 fiwswe <fiwswe@fwml.de>

Use str_starts_with/str_ends_with


# 6547cfc7 31-Aug-2023 Gerrit Uitslag <klapinklapin@gmail.com>

use $auth instanceof AuthPlugin instead of not null check


# 4dc42f7f 31-Aug-2023 Gerrit Uitslag <klapinklapin@gmail.com>

unused items, phpdocs


# 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


# 62ad2d27 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: control structure fixes


# 4b230b99 31-Aug-2023 Andreas Gohr <andi@splitbrain.org>

code style: indent fixes


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

deprecate ptln()

This method was used to ensure some basic readability in the created
HTML sources long before Firebug and later the builtin inspector tools
in browsers pretty printed the HTML for y

deprecate ptln()

This method was used to ensure some basic readability in the created
HTML sources long before Firebug and later the builtin inspector tools
in browsers pretty printed the HTML for you. Today, this is no longer
needed.

This adds a custom rector rule to automatically change all occurances to
echo statements.

show more ...


# 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


12345678910>>...22