summaryrefslogtreecommitdiff
path: root/inc/pageutils.php
Commit message (Collapse)AuthorAge
* phpdocs, reformattingGerrit Uitslag2015-06-30
|
* Remove error supression for file_exists()Andreas Gohr2015-01-07
| | | | | | | 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.
* Merge remote-tracking branch 'origin/master' into scrutinizerissuesGerrit Uitslag2014-12-09
|\ | | | | | | | | | | | | | | | | Conflicts: inc/media.php inc/plugin.php inc/template.php lib/plugins/authplain/_test/escaping.test.php lib/plugins/syntax.php
| * fix scrutinizer issueslisps2014-09-26
| |
| * Merge remote-tracking branch master into revisionslisps2014-09-26
| |\
| * \ Merge remote-tracking branch 'remotes/origin/master' into revisions_locallisps2014-03-19
| |\ \
| * | | fix check link existence, have to call getLastRevisionAt for every linklisps2014-02-22
| | | |
| * | | check link existencelisps2014-02-20
| | | |
* | | | Many PHPDocs, some unused and dyn declared varsGerrit Uitslag2014-10-01
| | | | | | | | | | | | | | | | | | | | | | | | many PHPDocs some unused variables some dynamically declared variables declared
* | | | scrutinizer documentations issuesGerrit Uitslag2014-09-29
| |_|/ |/| |
* | | revert return of getNS to false againAndreas Gohr2014-05-25
| | |
* | | PHPdocs pageutilsGerrit Uitslag2014-05-21
| | |
* | | getNS returns empty string instead of falseGerrit Uitslag2014-05-21
| |/ |/|
* | amend $_SERVER to $INPUT->serverChristopher Smith2014-03-06
| |
* | Improve PHPDocs pageutilsGerrit Uitslag2014-02-18
|/
* removed deprecated third param of cleanID()Anika Henke2013-11-04
|
* replace boolean conditional checks on possibly uninitialized vars with ↵Christopher Smith2013-10-16
| | | | \!empty/empty/isset as appropriate
* Bugfix: DOKU_CONF path in pageutils.phphArpanet2013-09-20
| | | Remove extraneous slash. This extra slash was preventing the file being displayed by DokuWiki. (apologies for the two pulls instead of one)
* Redirect only in the show action to namespace start pages FS#2743Michael Hamann2013-03-08
| | | | | | | | | | | | | When the current page id ends with ":" (or "/" with useslash enabled) DokuWiki tries to find the start page of namespaces automatically and then redirects to this page. The target of the redirect is always the show action regardless if the current request contains another action or is an ajax request. In practice you can get this problem when your search query ends with ":" (e.g. because you want to match a namespace), then you are redirected to the show action. This change completely disables the redirect when $ACT is undefined or the current action is not "show".
* Combine subsequent calls to strtr into a single transformationTom N Harris2012-11-18
|
* fixed wrong sidebar showing in namespaces when sidebar is disabledAnika Henke2012-11-18
|
* changed PAGEUTILS_ID_HIDEPAGE to has BEFORE/AFTERDominik Eckelmann2012-11-05
|
* added event PAGEUTILS_ID_HIDEPAGEDominik Eckelmann2012-10-31
|
* Allow the $check parameter of sectionID to be falseMichael Hamann2012-08-24
|
* replaced use of basename() with utf8_basename() FS#2015Andreas Gohr2012-07-28
|
* Merge branch 'input-validation' of git://github.com/whoopdedo/dokuwiki into ↵Andreas Gohr2012-07-06
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pull-request-110 * 'input-validation' of git://github.com/whoopdedo/dokuwiki: fix incorrect usage of tpl_getMediaFile fix necessary global declaration Input wrapper for html forms Input validation for media manager Input wrapper for exe scripts more INPUT wrapper uses: cache purge, sectok, getID Input wrapper for action.php Conflicts: lib/exe/css.php
| * more INPUT wrapper uses: cache purge, sectok, getIDTom N Harris2012-06-27
| |
* | Improved sidebar inclusionAndreas Gohr2012-07-01
|/ | | | | Template authors now can use tpl_sidebar() to include the sidebar. Sidebars can be defined in subnamespaces as well
* Merge branch 'master' into htmlmailAndreas Gohr2012-04-15
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (382 commits) Romanian language update Marathi language update Arabic Language Update when there's not enough space for images, make sure they stay proportional (might be FS#2480) added minimal RTL print styles (part of FS#2185) moved plugins' rtl.css to their style.css counterpart (part of FS#2185) removed all browser-specific gradients as the recently (in 42ff6730) introduced svg makes them unnecessary removed comments from accidentally commented lines in tpl_includeFile() removed obsolete template file added tpl_includeFile() to core Make getTitle method in remote interface public Changed an error code in XML-RPC interface. This error hasn't anything to do with the rest of the -32600 errors. BG: language update Korean language update fixed performance issues with gradient in Firefox (which also added gradient support for IE9) (FS#2447) deleted very old (and unused) images added accidentally removed '<?php' back in (was in 57fc5edd) wrapped X-UA-Compatible meta tag with conditional comments added explanation to todo in _forms.css removed problematic 'overflow: hidden' from lists again ('unfixes' FS#1950) ... Conflicts: inc/auth.php inc/load.php
| * coding style updatesAndreas Gohr2012-03-16
| |
| * deprecated 3rd parameter of cleanID() FS#2377Andreas Gohr2011-11-28
| | | | | | | | | | | | | | For some reason trailing/leading underscores were allowed when uploading files. But the rest of the code (eg. listing or downloading files) never supported this. This patch removes this special case for uploading files to streamline ID cleaning of pages and media files.
* | allow non-txt extensions when accessing localesAndreas Gohr2011-11-13
|/
* fix namespace cleaning FS#2295Andreas Gohr2011-09-25
| | | | | | | | | | | This patch applies the correct pagename cleaning to namespaces as well. Namespaces should follow the same rules as pagenames but due to a bug it was possible to have namespaces ending in a underscore. If you used such a namespace it will be inaccessible after applying this patch. You should rename the namespace directory on the filesystem (removing the trailing underscore). You old links will then work automatically again. Rebuilding the search index is recommended.
* media managerKate Arzamastseva2011-06-13
|
* media version saving fixesKate Arzamastseva2011-06-05
|
* media version saving fixKate Arzamastseva2011-06-04
|
* media version savingKate Arzamastseva2011-05-26
|
* If the page link is empty, it should link to current page -- FS#2178Izidor Matušov2011-04-07
|
* Fix metaFiles for ids that require utf-8 escapingMichael Hamann2011-01-12
| | | | | Before this change metaFiles didn't return anything for ids where the part without the namespace needs (utf-8) filename escaping.
* Fix FS#2131 - metaFiles returning unrelated filesMichael Hamann2011-01-12
|
* Language files can now be customized in the conf/ directoryMichael Hamann2010-12-29
| | | | | | As suggested by Robin Getz locale .txt files can now be duplicated and changed in the conf/lang/ directory and conf/plugin_lang/$plugin/ directory for plugins.
* Small fixes / cleanupAdrian Lang2010-09-28
|
* Fix ns: and ns:start handlingAdrian Lang2010-07-01
|
* Support ns; idsAdrian Lang2010-07-01
|
* new fnencode option FS#1649Andreas Gohr2010-04-04
| | | | | | This patch adds an option to choose how filenames are encoded when saved to the file system. You can choose between urlencoding (url), the new SafeFn method (safe) and storing real UTF-8 (utf-8).
* replaced readdir() with glob() in metaFiles()Michael Klier2010-03-26
|
* Fixed testcase and getID - FS#1908 FS#1831 FS#1838Michael Hamann2010-03-02
| | | | | | | | | $_SERVER['PATH_INFO'] is used now to determine the page id when using internal rewriting, in all testcases I've seen so far this variable was set correctly. There are also a couple of fallbacks if the variable doesn't exist, $_SERVER['SCRIPT_NAME'] is now preferred instead of custom path extraction which fails when doku.php is outside the document root.
* Revert "Redirect to start page for the root namespace too"Andreas Gohr2010-03-02
| | | | | | | This reverts commit 7873e7571e67c02167e5747441a2c6be32b07267. The patch breaks at least the behaviour of the "view recent changes of the whole wiki" link.
* Better performance on assigning section IDs FS#1894Chris Tapp2010-02-28
|
* Redirect to start page for the root namespace tooStephen Warren2010-02-22
| | | | | | | | | | | | | | | | | | | | | | | Dokuwiki emits an HTTP redirect when accessing: /path/to/some/namespace/ to force the browser to: /path/to/some/namespace/$conf['start'] However, this doesn't happen for the root namespace itself. In some ways, this doesn't really matter, since accessing plain "doku.php" will show the root namespace "start" page even without the redirection. Equally, this can be trivially fixed using mod_rewrite rules, but I don't want to encode the start page name into my rewrite rules. Finally, I like the consistency of always having the start page name in the URL, rather than special-casing the root namespace. (Actually, I'd prefer never to have it in the URL, but that looks more complex to achieve). Anyway, the attached patch makes the redirect happen for the root namespace as well.