History log of /dokuwiki/inc/parser/xhtml.php (Results 1 – 25 of 367)
Revision Date Author Comments
# 0e11cf25 27-Nov-2024 brzsmg <brzsmg@gmail.com>

Typo in the word associative


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


# e44b94a4 08-Sep-2024 Andreas Gohr <andi@splitbrain.org>

Revert "use a dispatcher to access static image files"

This reverts commit 944e9ba7254387adb60f253b0d8796f2276096b1.

It was accidentally pused to master before review. A PR with a revert
for the re

Revert "use a dispatcher to access static image files"

This reverts commit 944e9ba7254387adb60f253b0d8796f2276096b1.

It was accidentally pused to master before review. A PR with a revert
for the revert will be pushed shortly.

show more ...


# 944e9ba7 08-Sep-2024 Andreas Gohr <andi@splitbrain.org>

use a dispatcher to access static image files

This makes it possible to replace default images in an update safe way.
It also addresses the issue raised in dokuwiki/docker#16

A .htaccess rewrite ca

use a dispatcher to access static image files

This makes it possible to replace default images in an update safe way.
It also addresses the issue raised in dokuwiki/docker#16

A .htaccess rewrite catches any direct accesses that might come in from
plugins.

show more ...


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

Use str_starts_with/str_ends_with


# 749bc7f1 02-Sep-2023 Andreas Gohr <andi@splitbrain.org>

minor cleanup in the renderers


# 95078f23 02-Sep-2023 Andreas Gohr <andi@splitbrain.org>

apply code sniffer rules to inc/parser as well


# a19c9aa0 30-Aug-2023 Gerrit Uitslag <klapinklapin@gmail.com>

recover comments in list


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

Apply rector fixes to inc/parser


# 53df38b0 15-May-2023 Andreas Gohr <andi@splitbrain.org>

fix XSS in RSS syntax

The title was not correctly escaped when written to the doc in xhtml
renderer.

SimplePie does no content escaping on its own (a comment in the code
seems to suggest that that

fix XSS in RSS syntax

The title was not correctly escaped when written to the doc in xhtml
renderer.

SimplePie does no content escaping on its own (a comment in the code
seems to suggest that that was assumed). Instead the content is passed
on as-is from the feed.

This patch also applies some more escaping on the description output
(though it should have been relatively safe thanks to the use of
striptags).

This was discovered by @ry0tak and reported in
https://huntr.dev/bounties/c6119106-1a5c-464c-94dd-ee7c5d0bece0/

show more ...


# d5fce494 11-Mar-2023 Andreas Gohr <andi@splitbrain.org>

Merge branch 'pr/3908'

* pr/3908:
JPEGMeta: clean up exception handling
Fix: Do not garbage collect the JpegMeta object after reading a tag
Replace check for null with cast to string
Fix: Re

Merge branch 'pr/3908'

* pr/3908:
JPEGMeta: clean up exception handling
Fix: Do not garbage collect the JpegMeta object after reading a tag
Replace check for null with cast to string
Fix: Rework error handling in JpegMeta marker reading
Replace is_null() check with count()
Fix: Padding in _getFixedString, log the path of damaged images
Fix: PHP8-related JpegMeta.php fixes
Backwards Compatibility: Don't error if finishSectionEdit is called without first startSectionEdit
Fix: 'E_WARNING: Uninitialized string offset -1' on some templates
Fix: 'E_WARNING: Undefined array key "_data"'

show more ...


# 78b498a7 10-Mar-2023 Andreas Gohr <andi@splitbrain.org>

clean up parserutils (reformatting mostly)


# ad43fdbf 08-Mar-2023 asivery <asivery@protonmail.com>

Replace is_null() check with count()


# 0d9f02ec 25-Feb-2023 asivery <asivery@protonmail.com>

Backwards Compatibility: Don't error if finishSectionEdit is called without first startSectionEdit


# ac2b3d9e 19-Oct-2022 Andreas Gohr <andi@splitbrain.org>

Merge pull request #3798 from splitbrain/nofootshoot

Remove the htmlok and phpok embedding options


# ec34bb30 19-Oct-2022 Andreas Gohr <andi@splitbrain.org>

Update core code to make use of sexplode()

This makes use of our own explode mechanism everywhere were we expect a
fixed number of results.


# bbe6b3a7 12-Oct-2022 Andreas Gohr <andi@splitbrain.org>

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

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.

show more ...


# e3c00e6e 03-Feb-2022 Iain Hallam <iain@nineworlds.net>

Accept returnonly parameter to header()


# e6c6ac50 22-Jan-2022 Andreas Gohr <andi@splitbrain.org>

Merge pull request #3574 from splitbrain/php81

Some PHP 8.1 compatibility fixes


# 2cd6cc0a 02-Jan-2022 Andreas Gohr <andi@splitbrain.org>

move resolvers into File namespace


# b469737a 02-Jan-2022 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into refactorResolving

* master: (142 commits)
authPDO: extend mysql test to ensure multiple groups are read
update DokuWiki install URL
update smtp plugin URL
update f

Merge branch 'master' into refactorResolving

* master: (142 commits)
authPDO: extend mysql test to ensure multiple groups are read
update DokuWiki install URL
update smtp plugin URL
update flashplayer URL
Revert "Merge pull request #3039 from takuy/video-attributes"
Revert "fixed video attribute handling in php8"
Revert "more php8 fixes for the video attributes"
guard against unsert user name. fixes #3455
remove remaining X-UA-Compatible headers. fixes #3434
more php8 fixes for the video attributes
fixed video attribute handling in php8
fix test for draft file
fix security problems in draft handling. fixes #3565
fix handling of loading auth backend
check CSRF token in draftdel action. fixes #3563
ignore another PSR12 style check for now
authplain: properly clean user names
Removes use of deprecated create_function() in teests. Replaces them with anonymous functions. Refs #3545
check security token on logout. fixes #3561
create SECURITY.md fixes #3558
...

show more ...


# bf8f8509 01-Jan-2022 Andreas Gohr <andi@splitbrain.org>

guard against unset parameters

Many string function will throw a deprecation warning in PHP 8.1 when
null is passed. This adds a few guards in some of our methods (not all,
yet)


# f7711f2b 01-Jan-2022 Andreas Gohr <andi@splitbrain.org>

always use the same htmlspecialchars setup

defaults for htmlspecialchars change in PHP 8.1

All calls should always use our hsc() method to ensure comparability
(especially when testing)


# 252acce3 23-Oct-2021 Satoshi Sahara <sahara.satoshi@gmail.com>

coding style of functions using ChangeLog


# 30903c8d 05-Apr-2021 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into refactorResolving

* master: (257 commits)
add unit test for namespace exclusion in ft_pageLookup()
exclude ns in pagelook ups
translation update
Obsolete attribute

Merge branch 'master' into refactorResolving

* master: (257 commits)
add unit test for namespace exclusion in ft_pageLookup()
exclude ns in pagelook ups
translation update
Obsolete attribute
translation update
translation update
translation update
translation update
translation update
Add missing `;` causing syntax error in js.php
Run tests on PHP 8.0 now
translation update
translation update
test: run test in separate process in case of error
test: fix two tests on PHP8
style: fix test code style
fix method handling for RPC_CALL_ADD
destroy the JPEGMeta object after use
upgrade simplepie to 1.5.6
dwpage: output meta data as JSON
...

show more ...


12345678910>>...15