summaryrefslogtreecommitdiff
path: root/inc/media.php
Commit message (Collapse)AuthorAge
* Test uploaded files for HTML tags FS#1077Andreas Gohr2007-02-24
| | | | | | | | | | | | | | | Following the problem with IE's mimetype handling described at http://www.splitbrain.org/blog/2007-02/12-internet_explorer_facilitates_cross_site_scripting this patch adds a new option (on by default) to check the first 256 bytes of uploaded files against a list of a few HTML tags and denies the upload of such a file. In rare occasions this may block harmless and valid files, but that's price we have to pay for Microsoft's stupidity. Users who need HTML uploads should disable this check. (Don't do that on open Wikis!) darcs-hash:20070224124458-7ad00-0ced616d06f563515b36a0a6871b5ba50229c946.gz
* send notify mails for uploaded filesAndreas Gohr2007-02-12
| | | | darcs-hash:20070212190216-7ad00-7be9443a13ab0e885e569f4bdae166fcd00ab836.gz
* check if uploaded content matches the given mime typeAndreas Gohr2007-02-11
| | | | | | | | A first attempt at fixing FS#1077 currently checks images and spam darcs-hash:20070211223230-7ad00-ba8186c5e848e8783acabb9bf598739617aabdf2.gz
* show lastmod datetime in mediamanager FS#964Andreas Gohr2007-01-06
| | | | darcs-hash:20070106125603-7ad00-a10d366e8a3c7d58aacbffbe333b4fccba340f4a.gz
* don't show .txt files as medianamespaces #963Andreas Gohr2006-11-03
| | | | darcs-hash:20061103150850-7ad00-9b6936efb8dd47eb366e5cd34a3149f4d81caa14.gz
* a bit of strictness for mediamgr + login formAnika Henke2006-10-16
| | | | darcs-hash:20061015222040-d5083-afb1c38f5bb2610260bbc51fbff816a8ed2e5f49.gz
* replaced inlinestyle with classAndreas Gohr2006-07-31
| | | | darcs-hash:20060731182514-7ad00-25984c9370bb43abe52e6c17fb1a5eb701c3e6da.gz
* another try at the uploadformAndreas Gohr2006-07-31
| | | | darcs-hash:20060731175331-7ad00-7cfe2aa927bb837368c07e01a85ad9ffe697956d.gz
* mediamanager uploadform: adjusted html + cssAnika Henke2006-07-30
| | | | darcs-hash:20060730111004-d5083-ab7efbe958e77f5b7ff4500b91b8d43da657e9d4.gz
* IO action eventsBen Coburn2006-07-05
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* fix media file permissionsBen Coburn2006-06-09
| | | | | | | Always chmod media because they may be saved with different permissions than expected from the php umask. darcs-hash:20060609072434-05dcb-8e6cb602df7afc75633c7eec0a9056a8b9696f77.gz
* more semantic alt values in media treeAnika Henke2006-06-07
| | | | darcs-hash:20060607193424-d5083-1ecd7dce6a41d12339c66b48883980e285c95214.gz
* be clever about extensions on uploadAndreas Gohr2006-05-27
| | | | | | | | | | | This patch makes it possible to enter filenames without an extension in the upload as field when the uploaded file it self has a known extension. It also prints a warning when an extension was changed by the user. darcs-hash:20060527100310-7ad00-cf2abb4b9730e54b96c6ba24b2a999011cfb834a.gz
* added id to namespace headlineAndreas Gohr2006-05-26
| | | | | | | This makes the currently in the medaia manager selected namespace available to any JavaScript files darcs-hash:20060526144011-7ad00-23c476c38f8b559680c510c16b7de9924d3dd669.gz
* validity fix in image meta edit formAndreas Gohr2006-05-25
| | | | darcs-hash:20060525173150-7ad00-07520ef2e00d48a01eb3681357d3a31e2feea86b.gz
* media manager validity fixesAndreas Gohr2006-05-25
| | | | darcs-hash:20060525172718-7ad00-4395765bab12098f5fb8c4ec6d1f98ffd8937f0c.gz
* label for root of medianamespacesAndreas Gohr2006-05-25
| | | | darcs-hash:20060525160758-7ad00-43610809062192c93c4ec7dfb578e9f3eb6a0e80.gz
* more mediamanager fixesAndreas Gohr2006-05-25
| | | | | | | This fixes some styling issues, the cookie handling and a bug in the JavaScript caching mechanism. darcs-hash:20060525144000-7ad00-2f0b673d4f747c979f460e4e927a50eeeae81ec1.gz
* media manager enhancementsAndreas Gohr2006-05-19
| | | | | | | Separate scrolling for right and left side of the manager (like frames) Show syntax example for simple copy'n'paste if no JavaScript available. darcs-hash:20060519202900-7ad00-9b20bd7993d3687f83b807a81cd23051b16785db.gz
* new mediamanagerAndreas Gohr2006-05-19
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