summaryrefslogtreecommitdiff
path: root/install.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-10-17 19:53:29 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-10-17 19:53:29 +0200
commit894a80cc56d188b10cc78bb4c088bea731f991a2 (patch)
treef02c800c5f2872bf614ca8161ca07f69ddd9b35f /install.php
parent5b8fbc22b64a916716a97745d645316f213db374 (diff)
downloadrpg-894a80cc56d188b10cc78bb4c088bea731f991a2.tar.gz
rpg-894a80cc56d188b10cc78bb4c088bea731f991a2.tar.bz2
restrict fetch.php's download abilities
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
Diffstat (limited to 'install.php')
-rw-r--r--install.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/install.php b/install.php
index b0d2bc7fd..e7d979d2e 100644
--- a/install.php
+++ b/install.php
@@ -40,7 +40,7 @@ $dokuwiki_hash = array(
'2005-09-22' => 'e33223e957b0b0a130d0520db08f8fb7',
'2006-03-05' => '51295727f79ab9af309a2fd9e0b61acc',
'2006-03-09' => '51295727f79ab9af309a2fd9e0b61acc',
- 'rc2006-10-08' => 'c795599093bcde8765ed5df6c8dd7c4b',
+ 'rc2006-10-08' => 'b3a8af76845977c2000d85d6990dd72b',
);