- Nov 10, 2006
-
-
Andreas Gohr authored
This adds support for the OpenSearch specification to autodetect DokuWiki's search engine. The patch was submitted by Mike Frysinger some time ago. Some changes were made to the original patch. Only tested in FireFox 2.0 darcs-hash:20061110151453-7ad00-298ad77603854a604a642c0afd3975a997b8dc09.gz
-
- Nov 03, 2006
-
-
Andreas Gohr authored
darcs-hash:20061103150850-7ad00-9b6936efb8dd47eb366e5cd34a3149f4d81caa14.gz
-
- Oct 18, 2006
-
-
Andreas Gohr authored
This patch is an enhancement to yesterday's changes. The ability to download external content could be used for XSS attacks, when faking the sent MIME type. This patch adds a check on the received data for valid images. darcs-hash:20061018124942-7ad00-4e8bca7d3877e6a10c348b5d45499cf8adf8b087.gz
-
- Oct 17, 2006
-
-
Andreas Gohr authored
This patch changes fetch.php ability to download external files. It now checks for the returned MIME type and will only download images. For all other MIME types a redirect is sent back to the browser. This reduces the risc of being misused as open proxy. Additionally the download facility is disabled completly by default by setting the fetchsize option to 0. Users who want the feature need to overwrite the option in their local.php. Background: The ability to download external files is needed to resize external images on the server side. When disabled, a redirect is sent to the browser which will download the fullsize image and rescale it on the client side which is more bandwidth and CPU intensive. darcs-hash:20061017175329-7ad00-cd1b1bfa043a04540c51ca8380d28deaa14147d1.gz
-
- Oct 08, 2006
-
-
Andreas Gohr authored
Fixes a header injection/XSS vulnerability darcs-hash:20061008100523-7ad00-be06a942badb6a2a9ed862be003ee0050504b4b0.gz
-
Andreas Gohr authored
This patch removes some commented code fragments and alternative snippet generators darcs-hash:20061008090624-7ad00-14bfee2ded6c6c8ef43ad02a4c02a5d95ee9daf7.gz
-
- Sep 26, 2006
-
-
Andreas Gohr authored
Fixes a shell injection and a DOS vulnerability darcs-hash:20060926200551-7ad00-5ef27940dda6e48e7e2f8743fc90fa80b7b5cdff.gz
-
- Sep 24, 2006
-
-
chris authored
- fix potential array key collisions - restore ability to keep a minimum number ($conf['recent']) of recent changes irregardless of date of change darcs-hash:20060924162105-9b6ab-06350f04f9d9ac4c362f13787b682ef70887a1fc.gz
-
Andreas Gohr authored
darcs-hash:20060924100606-7ad00-7e0bc1fa7778669ac352f8d8994acbb7517323cd.gz
-
- Sep 23, 2006
-
-
chris authored
This patch fixes a bug in indexer.php which resulted in the order of the recent changes cache being reversed each time it was trimmed. It also adds sorting to both getRecents() and runTrimRecentChanges() as a defensive measure against the order of the file being corrupted. darcs-hash:20060923235109-9b6ab-0f4062c1b02449cce9382426174cd22d71387e5a.gz
-
- Sep 17, 2006
-
-
Andreas Gohr authored
darcs-hash:20060917140718-7ad00-ab1b95974ad63966c770f787112bc7c2e285c394.gz
-
- Sep 08, 2006
-
-
Ben Coburn authored
Suppress any errors from set_time_limit, unlink, and file_exists functions. see: http://www.freelists.org/archives/dokuwiki/09-2006/msg00004.html darcs-hash:20060908193433-05dcb-013617431870ab5bfb2ce8c6e99ba5af13493228.gz
-
- Aug 30, 2006
-
-
Ben Coburn authored
This patch provides a rewritten changelog system that is designed to run efficiently on both small and large wikis. The patch includes a plugin to convert changelogs from the current format. The conversion is non-destructive and happens automatically. For more information on the new changelog format see "http://wiki.splitbrain.org/wiki:changelog". Structure In short the changelog is now stored in per-page changelog files, with a recent changes cache. The recent changes cache is kept in "/data/meta/_dokuwiki.changes" and trimmed daily. The per-page changelogs are kept in "/data/meta/<ns>/<page_id>.changes" files. To preserve revision information for revisions stored in the attic, the "*.changes" files are not removed when their page is deleted. This allows the full life-cycle of page creation, deletion, and reversion to be tracked. Format The changelog line format now uses a general "line type" field in place of the special "minor" change syntax. There is also an extra field that can be used to store arbitrary data associated with special line types. The reverted line type (R) is a good example. There the extra field holds the revision date used as the source for reverting the page. See the wiki for the complete syntax description. Code Notes The changelog functions have been rewritten to load the whole file only if it is small. For larger files, the function loads only the relevant chunk(s). Parsed changelog lines are cached in memory to speed future function calls. getRevisionInfo A binary search is used to locate the chunk expected to contain the requested revision. The whole chunk is parsed, and adjacent lines are optimistically cached to speed consecutive calls. getRevisions Reads the changelog file backwards (newest first) in chunks until the requested number of lines have been read. Parsed changelog lines are cached for subsequent calls to getRevisionInfo. Because revisions are read from the changelog they are no longer guaranteed to exist in the attic. (Note: Even with lines of arbitrary length getRevisionInfo and getRevisions never split changelog lines while reading. This is done by sliding the "file pointer" forward to the end of a line after each blind seek.) isMinor Removed. To detect a minor edit check the type as follows: $parsed_logline['type'] darcs-hash:20060830182753-05dcb-1c5ea17f581197a33732a8d11da223d809c03506.gz
-
- Aug 09, 2006
-
-
Ben Coburn authored
Allows action plugins to support custom ajax calls. The event data is the call name from $_POST['call']. When handling a custom ajax call, remember to use $event->preventDefault(); to avoid having the 'AJAX call <call> unknown!' message appended to the output. darcs-hash:20060809194501-05dcb-0082e4f2a83fc8657fc7cdcf32d44aac8d1a6b99.gz
-
- Aug 07, 2006
-
-
Andreas Gohr authored
darcs-hash:20060807205738-7ad00-5492ba5fe3e854f9dc233254535e4e897847353c.gz
-
- Jul 31, 2006
-
-
Andreas Gohr authored
This fixes a problem with escaped backslashes in single and double quote strings. darcs-hash:20060731223008-7ad00-ebae61a00115b7f32c12eb9355059a1ecf467cd3.gz
-
Andreas Gohr authored
This patch now assigns the needed proprietary CSS attributes for the spellchecker through JavaScript. This makes the CSS valid again (at least it appears to be ;-)) I also fixed a problem with leading single spaces in IE darcs-hash:20060731192807-7ad00-b82bdcae9a0c8cf063c3a1e985dbfd1dfdee7b06.gz
-
- Jul 10, 2006
-
-
Ben Coburn authored
Fixing undefined variable notices and sometimes the underlying error that produced them. darcs-hash:20060710114655-05dcb-073948171847f1f43f153e96c8382abd421da36a.gz
-
- Jul 05, 2006
-
-
Ben Coburn authored
Adds page and namespace events: IO_WIKIPAGE_READ IO_WIKIPAGE_WRITE IO_NAMESPACE_CREATED IO_NAMESPACE_DELETED The namespace events are purely advisory, while the wikipage events allow page content to be modified between DokuWiki and the disk. These events are primarily intended to simplify keeping other tools in sync with the semantic structure of a DokuWiki site. As an added benefit, the events allow plugins to conduct automated processing of raw wiki page content. The namespace events cover the separate namespace trees for both pages and media. The "name" of the tree that the event belongs to is included in the event data. darcs-hash:20060705105652-05dcb-f44024e852a2adf1a14b8a7d69c46db067e72307.gz
-
- Jul 01, 2006
-
-
Andreas Gohr authored
darcs-hash:20060701120325-7ad00-07efe9cacd51043ad95d8d2d71d8680036721286.gz
-
- Jun 28, 2006
-
-
Michael Klier chi@chimeric.de authored
darcs-hash:20060628094419-484ab-148d62ec3e29deb7ca9fa9b787c238a1d73bc4e3.gz
-
- Jun 19, 2006
-
-
chris authored
- correct begin/end comment, plugin filename wasn't being used - add file exists check, to avoid bloating js with comments for non-existent plugin js. Many (most?) plugins don't have javascript. darcs-hash:20060619104613-9b6ab-08a570cdbb0d6441f1caa71766d4c59c73828835.gz
-
- Jun 16, 2006
-
-
Andreas Gohr authored
This patch improves the way the window.oninit JavaScript function is called. This function is used to initialiaze all JavaScript funcions attached to the DOM so it needs to be executed **after** the full DOM was parsed by the browser. Unfortunately currently only Mozilla supports a DOMContentLoaded event. In all other browsers we had to wait for the window.onload event which will only be called after **all** content (including images) was loaded - this caused a visible delay on all JavaScript generated content (like the toolbar) in non-Mozilla browsers. Dean Edwards now presented a solution [1] which will work for all the bigger Browsers and is used in this patch. The following browsers now should fire the init event right after parsing the DOM: All Mozilla based browsers Internet Explorer Safari Opera > darcs-hash:20060616104539-7ad00-db70d31fcb21cb812cf4982fe80a7d649e2daa1c.gz
-
- Jun 15, 2006
-
-
Andreas Gohr authored
This patch adds an option to configure the maximum size for files the fetch.php will ever download. Setting this to 0 completely turns of the caching of external media files. Disadvantages of setting a low or zero fetchsize: * fetch.php needs to download images to be able to resize them. When the used fetchsize prevents the downloading the images can only be resized by the browser which means the browser will need to download the fullsized image first. * If the linked external media files vanishes it will no longer display in the wiki because it is not cached. Advantages of setting a low or zero fetchsize: * fetch.php may be used for a possible denial of service attack by requesting many big external files. * The created cache files may take a lot of space on the server I recommend to leave the setting at 2MB for internal and private wikis and lower the setting to about 200 to 500 Kb for bigger public Wikis. Note: the caching of files uploaded through the media manager is not affected by this setting. darcs-hash:20060615184847-7ad00-04fc39928f7d72e56f5c5e271013ef265436e6c9.gz
-
- Jun 04, 2006
-
-
Andreas Gohr authored
darcs-hash:20060604175833-7ad00-cd96ba6a7db7211082ff82e189828e2e11a6f566.gz
-
- May 29, 2006
-
-
Andreas Gohr authored
darcs-hash:20060529183003-7ad00-de0e3acac75a9f94f6c27f67651eeabe40411d7a.gz
-
- May 27, 2006
-
-
Andreas Gohr authored
darcs-hash:20060527185238-7ad00-1593c8b25d7f870c8a0b3017fbcf29c4e047f52c.gz
-
Andreas Gohr authored
darcs-hash:20060527140157-7ad00-225a9ba66f658cc279cb44ebb04d483291d567d2.gz
-
- May 26, 2006
-
-
Andreas Gohr authored
darcs-hash:20060526223358-7ad00-2bdfd39a5dd8ca09101288834cc75e5e963afda5.gz
-
- May 25, 2006
-
-
Andreas Gohr authored
darcs-hash:20060525175501-7ad00-eebd033af344904eab32fe70ba5acfb77b94eada.gz
-
Andreas Gohr authored
This fixes some styling issues, the cookie handling and a bug in the JavaScript caching mechanism. darcs-hash:20060525144000-7ad00-2f0b673d4f747c979f460e4e927a50eeeae81ec1.gz
-
- May 20, 2006
-
-
Andreas Gohr authored
darcs-hash:20060520172118-7ad00-ad605bf51c8774d734012ece0071f70e6624788a.gz
-
- May 19, 2006
-
-
Andreas Gohr authored
darcs-hash:20060519212751-7ad00-ace54b61706fdf4f1b7c2abdbabee215a1e256ab.gz
-
Andreas Gohr authored
This patch adds a completely rewritten media popup. The following noteworthy changes were made: - media manager uses a collapsible namespace tree - media manager uses AJAX if available - media manager popup can be kept open when selecting a media file - only one template is used for the media manager :!: Template - Editable image metadata is configured in conf/mediameta.php now - The JS cookie mechanism was enhanced to store key/value pairs - Language strings can be exported to JS in js.php darcs-hash:20060519165023-7ad00-4932b4553fc919aa4a8b8187958b823acf4f8cee.gz
-
- May 16, 2006
-
-
Ben Coburn authored
- Adds a jpg quality setting for scaled images (Some images were getting too many jpg artifacts at the hard-coded compression setting.) - Creates a group for the media settings in the config plugin. darcs-hash:20060516062321-05dcb-a175b0de3264322a335cf60d8ee96317f7b03144.gz
-
- May 11, 2006
-
-
Andreas Gohr authored
The background indexer now gathers info on contributors and modification dates from the changelog when adding the missing meta info. A new io_grep function was added which might be useful for other parts in the Wiki as well. darcs-hash:20060511191450-7ad00-baba1b48ea03b823c88a480862c612316f159b5a.gz
-
- May 07, 2006
-
-
Andreas Gohr authored
darcs-hash:20060507165308-7ad00-3526c8c4e5d8c10a8e003068008e2344e94e1739.gz
-
Andreas Gohr authored
This removes the meta instruction again in favour of the new meta renderer. Most tests work now again, a few tweaks were done on the header handler to render certain headers as it did in earlier versions. darcs-hash:20060507153113-7ad00-bd299fbe1762482c72d109f9bca776f12bcea7c8.gz
-
- May 06, 2006
-
-
Andreas Gohr authored
darcs-hash:20060506215440-7ad00-a04d6ebb428816b534b7b3636f050885bc02f266.gz
-
- Apr 30, 2006
-
-
Andreas Gohr authored
darcs-hash:20060430182156-7ad00-1548636dbfaa9fc0b25c26e4121f763a485c2f9c.gz
-