summaryrefslogtreecommitdiff
path: root/inc/parser/code.php
diff options
context:
space:
mode:
authorTom N Harris <tnharris@whoopdedo.org>2012-06-28 23:31:31 -0400
committerTom N Harris <tnharris@whoopdedo.org>2012-06-28 23:31:31 -0400
commitf0859d4bbcf66e7ac5c42aae828058a98fa6355e (patch)
tree95c38d7f52ecec4715ec5e966cd0309f69e3b609 /inc/parser/code.php
parent8108113c244529ec54f11271a6a15e3d1e0a048f (diff)
downloadrpg-f0859d4bbcf66e7ac5c42aae828058a98fa6355e.tar.gz
rpg-f0859d4bbcf66e7ac5c42aae828058a98fa6355e.tar.bz2
Input wrapper for html forms
Diffstat (limited to 'inc/parser/code.php')
-rw-r--r--inc/parser/code.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/parser/code.php b/inc/parser/code.php
index 4d94dcf4e..ff44a4e1e 100644
--- a/inc/parser/code.php
+++ b/inc/parser/code.php
@@ -16,11 +16,12 @@ class Doku_Renderer_code extends Doku_Renderer {
* When the correct block was found it exits the script.
*/
function code($text, $language = NULL, $filename='' ) {
+ global $INPUT;
if(!$language) $language = 'txt';
if(!$filename) $filename = 'snippet.'.$language;
$filename = basename($filename);
- if($this->_codeblock == $_REQUEST['codeblock']){
+ if($this->_codeblock == $INPUT->str('codeblock')){
header("Content-Type: text/plain; charset=utf-8");
header("Content-Disposition: attachment; filename=$filename");
header("X-Robots-Tag: noindex");