- Feb 22, 2011
-
-
Tom N Harris authored
-
Tom N Harris authored
-
Tom N Harris authored
-
- Feb 18, 2011
-
-
Tom N Harris authored
-
- Feb 02, 2011
-
-
Michael Hamann authored
-
- Jan 24, 2011
-
-
Tom N Harris authored
-
Tom N Harris authored
-
- Jan 23, 2011
-
-
Michael Hamann authored
Conflicts: inc/fulltext.php inc/indexer.php lib/exe/indexer.php
-
Michael Hamann authored
This allows plugins to add their own version strings like plugin_tag=1 so pages can be reindexed when plugins update their index content.
-
- Jan 22, 2011
-
-
Michael Hamann authored
This new event allows plugins to add or modify the metadata that will be indexed. Collecting this metadata in an event allows plugins to see if other plugins have already added the metadata they need and leads to just one single indexer call thus fewer files are read and written. Plugins could also replace/prevent the metadata indexer call using this event.
-
Michael Hamann authored
This fixes addMetaKeys so it actually removes values. This also changes the functionality of the function: It now updates the key for the page with the current value instead of adding new values as this will be the default use case. A new parameter could be added to restore the "old" behavior when needed. addMetaKeys now only saves the index when the content has really been changed. Furthermore no empty number is added anymore to the reverse index when it has been empty previously. addMetaKeys now releases the lock again and really fails when the lock can't be gained.
-
Michael Hamann authored
Saving and looking up metadata key/value pairs seems to work now at least with some basic tests.
-
Michael Hamann authored
Now _saveIndexKey inserts empty lines when the index isn't long enough. This is necessary because the page ids are taken from the global page index, but there is not every page in the metadata key specific index so e.g. line 10 might be the first entry in the index.
-
Michael Hamann authored
-
- Jan 17, 2011
-
-
Michael Hamann authored
This reverts commit fa7c70ff.
-
- Jan 16, 2011
-
-
Michael Hamann authored
-
Andreas Gohr authored
-
Andreas Gohr authored
-
Michael Hamann authored
For locks and getRevisions there hasn't been any acl check. In many other cases the id hadn't been cleaned before the acl check was done which means that many acl rules that should be applied weren't applied. So e.g. when you have read permissions for the root namespace but not for a subnamespace you could add a leading ":" and the permissions for the root namespace will be used instead of the permissions for the subnamespace. This did not apply to writing pages and reading media files, but writing and deleting media files have been concerned as well as reading both plain and html versions of pages. This only concerns installations where XML-RPC is enabled (default is disabled) and XML-RPC is allowed for all or untrusted users.
-
Andreas Gohr authored
This reverts commit 58a22bd0. It was accidentally pushed to the repo.
-
- Jan 15, 2011
-
-
Michael Hamann authored
This removes headers that are sent by PHP/the webserver anyway as they are possibly wrong as e.g. when gzip compression is enabled in inc/init.php (which does happen when the client supports gzip) the content size is smaller than the one that was specified by the content-length header and thus e.g. the Python XML-RPC client fails with an error message because of the size mismatch. Additionally the content encoding is now set to utf-8 in the http headers.
-
Michael Hamann authored
Sometimes (when using rewriting with the workaround for CGI mode described at http://www.besthostratings.com/articles/http-auth-php-cgi.html) the HTTP_AUTHORIZATION variable is renamed, this change detects this renaming and uses the renamed variable.
-
Andreas Gohr authored
-
Andreas Gohr authored
-
Andreas Gohr authored
-
Andreas Gohr authored
Not sure if this sympol is the best to use. I'm open for different suggestions. Template auhtors still can overwrite the symbol of course.
-
Andreas Gohr authored
This makes it possible for plugin and template authors to overwrite or extend the quicksearch JavaScript logic.
-
Andreas Gohr authored
-
- Jan 14, 2011
-
-
Adrian Lang authored
$NS is only used in lib/exe/{ajax,mediamanager}.php when no $ID context is present. The two functions which use $NS in inc/template.php are only called through those both endpoints, not through doku.php. In doku.php, $ID is the only correct value, $NS is not kept synchronous with $ID. Use getNS($ID) in functions which are called through doku.php.
-
Adrian Lang authored
-
Andreas Gohr authored
-
Andreas Gohr authored
This patch moves the shortening of namespaces in the quicksearch results to JavaScript. This makes it independend from used template and will always try to fill the width of the result pane correctly. Things missing: * Make it work with RTL-languages * Check Browser compatibility (only tested in Chrome so far)
-
Christian Wichmann authored
-
Christian Wichmann authored
-
Andreas Gohr authored
-
Andreas Gohr authored
[+] New feature: Move the user to a new OU using user_move() function [-] Bug fix: Prevent an 'undefined index' error in recursive_groups() when full PHP E_ALL logging is enabled [-] Bug fix: user_groups() does not return primary group when objectsid is not given (Tracker ID:2931213) [-] Bug fix: Undefined index in function user_info for non-existent users (Tracker ID:2922729) [-] Bug fix: Force user_info to find objectCategory of person as if a sAMAccountName also exists in a group it will return that group. (Tracker ID:3006096) [-] Bug fix: Return false for user_info if the user does not exist [-] Bug fix: user_info, checks for for a "count" value that not exist in $entries array if "memberof" isn't passed in $fields array. (Tracker ID:2993172) [-] Bug fix: In authenticate() if user authentication fails function returns and does not rebind with admin credentials - so the other funcions don't work anymore as $this->_bind === false. (Tracker ID:2987887) [-] Bug fix: When calling $ldap->user_modify('user', array("expires"=>0)) the function fails due to the value being 0. Changed to isset (Tracker ID:3036726)
-
- Jan 12, 2011
-
-
Yaron Shahrabani authored
-
Andreas Gohr authored
-
Andreas Gohr authored
since we don't use setter/getters for the other options it doesn't make sense to have them for the keep-alive function
-
Tobias Sarnowski authored
As soon as something goes wrong while querying a http server do not reuse the same connection again, its state is undefined. In addition, check the connection for feof() before reusing it.
-