diff options
author | Pablo Martin <caedes@sindominio.net> | 2012-11-05 08:04:51 +0000 |
---|---|---|
committer | root <root@ops.vz.lan> | 2012-11-05 08:05:02 +0000 |
commit | fd7786f838496cb89abd4d0d145a4f0cac466515 (patch) | |
tree | 8efbd78e3e59b209461346a47d7f1f65f81638d9 /views/default/dokuwiki | |
parent | 6d6a4cda5706342a9e041feda4c3b026feb9cdc9 (diff) | |
download | elgg-fd7786f838496cb89abd4d0d145a4f0cac466515.tar.gz elgg-fd7786f838496cb89abd4d0d145a4f0cac466515.tar.bz2 |
dont include png files as php.
Diffstat (limited to 'views/default/dokuwiki')
-rw-r--r-- | views/default/dokuwiki/index.php | 11 |
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); + } + } ?> |