aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPablo Martin <caedes@sindominio.net>2012-11-05 08:04:51 +0000
committerroot <root@ops.vz.lan>2012-11-05 08:05:02 +0000
commitfd7786f838496cb89abd4d0d145a4f0cac466515 (patch)
tree8efbd78e3e59b209461346a47d7f1f65f81638d9
parent6d6a4cda5706342a9e041feda4c3b026feb9cdc9 (diff)
downloadelgg-fd7786f838496cb89abd4d0d145a4f0cac466515.tar.gz
elgg-fd7786f838496cb89abd4d0d145a4f0cac466515.tar.bz2
dont include png files as php.
-rw-r--r--views/default/dokuwiki/index.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/views/default/dokuwiki/index.php b/views/default/dokuwiki/index.php
index e1c1120f8..424f1109b 100644
--- a/views/default/dokuwiki/index.php
+++ b/views/default/dokuwiki/index.php
@@ -1,6 +1,13 @@
<?php
global $CONFIG;
$destfile = $CONFIG->pluginspath.'dokuwiki/vendors/dokuwiki/'.$vars['page'];
- if (file_exists($destfile))
- include($destfile);
+ if (file_exists($destfile)) {
+ if (strpos($destfile, ".png") === FALSE)
+ {
+ include($destfile);
+ } else {
+ header("Content-type: image");
+ echo file_get_contents($destfile);
+ }
+ }
?>