History log of /dokuwiki/inc/Ui/Search.php (Results 1 – 25 of 60)
Revision Date Author Comments
# 03fdedf7 09-Sep-2025 Andreas Gohr <andi@splitbrain.org>

SECURITY: fix XSS vulnerability. fixes #4512

The namespace selector in the advanced search tools did not correctly
escape the user provided namespace.

This issue was reported by Mario Tesoro.


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

code style: line breaks


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

Apply rector fixes to inc/Ui


# 79a2d784 05-Jan-2022 Gerrit Uitslag <klapinklapin@gmail.com>

import classes, replace dbglog, simplify, remove unused statements, and other warnings from IntelliJ

update phpdocs,
rename dokuwiki/Ui/Draft to PageDraft


# a74a1f3f 26-Aug-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

Merge branch 'master' into form


# c6977b3a 26-Aug-2020 Satoshi Sahara <sahara.satoshi@gmail.com>

change event naming scheme

FORM_*_OUTPUT scheme had been introduced since Apriil 2018, see #2286


# 2d85e841 11-Aug-2020 Andreas Gohr <andi@splitbrain.org>

wrap sorting functions into their own class


# efc2a4c4 19-May-2020 Moisés Braga Ribeiro <moisesbr@gmail.com>

Functions renamed with "intl" prefix

Better naming of functions to help future maintenance.
- compare() renamed to intl_strcmp()
- sort_pagenames() renamed to intl_sort()
- sort_keys() renamed to in

Functions renamed with "intl" prefix

Better naming of functions to help future maintenance.
- compare() renamed to intl_strcmp()
- sort_pagenames() renamed to intl_sort()
- sort_keys() renamed to intl_ksort()
- new function intl_asort()
- sort_filenames() renamed to intl_asortFN()
Updated documentation.

show more ...


# 5f109073 10-May-2020 Moisés Braga Ribeiro <moisesbr@gmail.com>

Reimplementation of ksort()

Reimplementation of ksort() using collator.
Fix of getAdditionalNamespacesFromResults() function in "Ui/Search.php".

Screens fixed:
- Search (namespace selector below se

Reimplementation of ksort()

Reimplementation of ksort() using collator.
Fix of getAdditionalNamespacesFromResults() function in "Ui/Search.php".

Screens fixed:
- Search (namespace selector below search field)

show more ...


# 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


# e9f4a0f6 06-Mar-2019 Andreas Gohr <andi@splitbrain.org>

Merge branch 'master' into psr2

* master:
translation update
translation update
Use config cascade for style.ini files
translation update
translation update
use utf8_strtolower instead o

Merge branch 'master' into psr2

* master:
translation update
translation update
Use config cascade for style.ini files
translation update
translation update
use utf8_strtolower instead of strtolower
add test for utf8 capital letters in search #2613
compare cleaned pageid case-insensitive in search, fixes #2613
add tests for #2613
Defective transplantation of export from .htaccess

show more ...


# e180e453 21-Feb-2019 Phy <git@phy25.com>

use utf8_strtolower instead of strtolower


# 395b0e16 09-Jan-2019 Phy <git@phy25.com>

compare cleaned pageid case-insensitive in search, fixes #2613


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


# 42690e4d 27-Apr-2018 Michael Große <grosse@cosmocode.de>

feat: improve search as a primary means to create new pages

Specifically, this pull request checks if the current query is already a
valid pageid and then return that as suggested pageid.

Also, tes

feat: improve search as a primary means to create new pages

Specifically, this pull request checks if the current query is already a
valid pageid and then return that as suggested pageid.

Also, tests are added for this method.

Fixes #2355

PS: We may want to somehow better educate/nudge users to use the better
way of creating pages by creating links on existing pages.

show more ...


# 8225e1ab 20-Apr-2018 Michael Große <grosse@cosmocode.de>

fix(search): don't start result position with 2

Also, for consistency this initializes also $num with 0, while ensuring
that the first FT_SNIPPET_NUMBER results with a $cnt>0 have a snippet.


# f0861d1f 20-Apr-2018 Michael Große <grosse@cosmocode.de>

refactor(search): clearer data flow


# b12bcb77 19-Apr-2018 Anika Henke <anika@selfthinker.org>

Change spacing in search meta data to punctuation

Punctuation is more natural, makes sense with CSS switched off
and makes screenreaders add a little pause.


# 6d55fda7 17-Apr-2018 Michael Große <grosse@cosmocode.de>

Fix(search): restore valid heading hierarchy

In #2286 the 2nd level heading in the intro was removed, so the h3
should be promoted to h2.


# 78d786c9 17-Apr-2018 Michael Große <grosse@cosmocode.de>

fix(search): add position to fulltext results event


# 5d06a1e4 17-Apr-2018 Michael Große <grosse@cosmocode.de>

fix(search): ensure consistent html in search results

This implements some of the changes discussed in #2314:

1. last mod and number of hits are on the same line and always shown
2. There is a clas

fix(search): ensure consistent html in search results

This implements some of the changes discussed in #2314:

1. last mod and number of hits are on the same line and always shown
2. There is a class around the last mod string so it can be
hidden/replaced by an icon
3. All items in the resultBody returned by the event are wrapped in
`<dd>` tags to ensure validity. They get their array key as class
4. There is still a wrapper div around each result for styling purposes

show more ...


# 7c15eaa2 15-Apr-2018 Anika Henke <anika@selfthinker.org>

Fix invalid HTML in search results

Recent changes to the search results page added various divs
to the pre-existing description list, which is invalid.
This fixes that by a) removing a couple of unn

Fix invalid HTML in search results

Recent changes to the search results page added various divs
to the pre-existing description list, which is invalid.
This fixes that by a) removing a couple of unnecessary elements
and b) interpret the 'last modified' line as another 'dd'.

show more ...


# 5d87aa31 13-Apr-2018 Michael Große <grosse@cosmocode.de>

fix: bring back the namespace in brace for pagelookup results

This was unintentionally removed in
4eab6f7c40ab5e2fbbb5e0efb20d930d4b1730fe

It also should now be clearer what the code does.

This fi

fix: bring back the namespace in brace for pagelookup results

This was unintentionally removed in
4eab6f7c40ab5e2fbbb5e0efb20d930d4b1730fe

It also should now be clearer what the code does.

This fixes #2305

show more ...


# 422bbbc6 29-Mar-2018 Michael Große <grosse@cosmocode.de>

refactor: rename dta and dtb parameters

They are now named min and max respectively, which is hopefully less
cryptic.


123