History log of /dokuwiki/inc/pageutils.php (Results 1 – 25 of 164)
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


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

Apply rector fixes to the rest of inc


# f0476d8f 17-Feb-2022 Gerrit Uitslag <klapinklapin@gmail.com>

Merge branch 'master' into bug3608


# a5752066 15-Feb-2022 jpedryc <jan.pedryc@gmail.com>

Styling pageutils.php


# 92085f13 15-Feb-2022 Andreas Gohr <andi@splitbrain.org>

handle hashes in page_exists. fixes #3608


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


# 54611a7a 11-Nov-2021 Andreas Gohr <andi@splitbrain.org>

fix fallback implementation for resolve_pageid()

When an empty link was given, the old implementation fell back to $ID,
this was handled incorrectly in the deprecated method.


# dc23fc9a 11-Nov-2021 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into refactorResolving

* master: (37 commits)
disable jit compiling to avoid broken pcre lib #3507
Remove phpunit cache.
Fix PHPUnit fatal errors compatibility with void.

Merge branch 'master' into refactorResolving

* master: (37 commits)
disable jit compiling to avoid broken pcre lib #3507
Remove phpunit cache.
Fix PHPUnit fatal errors compatibility with void.
Method names with leading double underscore are reserved by PHP.
fix named access to the sha hashing mechanisms
adjust help text of extension cli
move IXR XML RPC to composer dependency #1970
translation update
:fire: fix the calculation of file permissons
Do not duplicate the foreach ($installed...
translation update
Allow installing extenions from URL via the CLI
Add support for SHA256 encrypted passwords
plugins/extension: Fix git recognition for plugin installations via git-submodules.
HTTPClient: Fix missing processing of redirections with status code 303, 307, 308.
SVG for interwiki links
translation update
manifest: add NOSESSION to not require auth
add missing google interwiki link. fixes #3502
translation update
...

show more ...


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

coding style of functions using ChangeLog


# 8c6be208 05-Apr-2021 Andreas Gohr <andi@splitbrain.org>

replace deprecated function calls

Replaces the use of resolve_pageid() and resolve_mediaid() with the
proper class invocations


# 5c844bb3 05-Apr-2021 Andreas Gohr <andi@splitbrain.org>

fix exists check in deprecated resolve_mediaid

This was copy'n'pasted from resolve_pageid. To correctly handle the
date_at parameter a media_exists() function had to be introduced.


# 4f582736 20-Mar-2021 Guillaume Turri <guillaume.turri@gmail.com>

Add tests on sectionID and fixes #3436

This commit fixes a bug on sectionID which could lead to having duplicated id.

Note that this commit changes the API a bit $check used to be a key-value array

Add tests on sectionID and fixes #3436

This commit fixes a bug on sectionID which could lead to having duplicated id.

Note that this commit changes the API a bit $check used to be a key-value array
(with key=the origin id, and value=the number of time this id has been generated)
and is now just an array of string. That's because the previous structure
couldn't work.

As far as Dokuwiki sources are concerned, this change should have no impact because:
- most call to sectionID are done with $check=false (and the behavior in this case
isn't changed
- only Doku_Renderer->_headerToLink passes an actual array to this method. But this
array is initialized empty, it is only filled and read by sectionID itself.
(this Doku_Renderer->headers array is protected but the classes which extends it
aren't referring this array).

It could still break usages of pluging that would call sectionID and rely on the
format of this array. But even if this commits kept $check as an array<string, bool>
(for instance setting the values to 1) the semantic wouldn't be the same.

To put it in a nutshell:
- this change of API has 0 impact on the core of Dokuwiki
- there is no evidence that it would impact other code
- there doesn't seem to be a clean way to avoid this change

This commit fixes #3436

show more ...


# bfcf8009 30-Sep-2020 Andreas Gohr <andi@splitbrain.org>

refactor page and media resolving, introduce ~ shortcut

This moves the resolve_id() type of functions into their own class
hierarchy.

A new shortcut to be used in links is introduced. The tilde ~ c

refactor page and media resolving, introduce ~ shortcut

This moves the resolve_id() type of functions into their own class
hierarchy.

A new shortcut to be used in links is introduced. The tilde ~ can be
used to reference the current page as a namespace. This is useful to
dynamically create a new namespace from an existing page, effectively
making that page the start page. It allows for a more dynamic growth of
the wiki and makes use of the rarer used "startpage named like the
namespace" method for start pages.

The existing code has not been modified, yet and continues to use the
old, now deprecated methods. Some tests are still failing - before they
are fixed, the expected behaviour needs to be discussed.

show more ...


# c077d4dc 02-Jun-2020 Andreas Gohr <andi@splitbrain.org>

fix hierarchical breadcrumbs #3114


# a405cfff 01-May-2020 Andreas Gohr <andi@splitbrain.org>

Merge pull request #3002 from splitbrain/ns-twiceup

Match multiple levels shortcut relative link


# b65274ec 05-Apr-2020 Phy <git@phy25.com>

Fix noNSorNS zero ID issue with unit tests, fixes #3037


# 4986a584 09-Mar-2020 Phy <git@phy25.com>

shortcut relative link: fix 3 levels up situation


# 26a03f08 09-Mar-2020 Phy <git@phy25.com>

Match multiple levels shortcut relative link, fixes #1076

Previously the regex only matches one level. Test added as well.


# 2401f18d 30-Oct-2019 Syntaxseed <825423+syntaxseed@users.noreply.github.com>

Fix curly brace syntax. PHP 7.3 deprecations in inc/ directory.


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


# cbb44eab 15-Jun-2018 Andreas Gohr <andi@splitbrain.org>

deprecated trigger_event() in favor of a static method on Event


# abc9c0d2 30-Mar-2019 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into psr2

* master: (22 commits)
Support "local" subdir when listing the smiley directory
fix zero ID/NS issue with page_findnearest
add ID/NS = '0' test against page_fin

Merge branch 'master' into psr2

* master: (22 commits)
Support "local" subdir when listing the smiley directory
fix zero ID/NS issue with page_findnearest
add ID/NS = '0' test against page_findnearest
fix zero value issue with metadata indexer
add key/value = '0' test to metadata indexer
fix zero ID issue with linkwiz and search indexer
fix zero ID issue with wl() and getID()
add $ID = '0' test against wl() and getID()
cookie.js when setValue‘s value parameter is false delete entry
install.php: respect useacl=0 choice, fixes #2576
cookie.js add def parameter to getValue()
cookie.js convert value type to string
set_doku_pref bugfix, closes #2721
more definition tests of doku_pref, for #1129
add tests for get/set_doku_pref #2721
fix Windows tests for #2702
use absolute URL in index.php when redirecting to doku.php, fixes #2706
Adding "recursive_groups" setting for authad-plugin in configuration-manager
Fix notices when using dw CLI
Fix issue #2396
...

show more ...


1234567