summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php10
1 files changed, 0 insertions, 10 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 22dc58963..83359cd55 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -40,8 +40,6 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
var $_counter = array(); // used as global counter, introduced for table classes
var $_codeblock = 0; // counts the code and file blocks, used to provide download links
- private $schemes = null; // protocol schemes
-
/**
* Register a new edit section range
*
@@ -883,14 +881,6 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
// support feeds without links
$lnkurl = $item->get_permalink();
if($lnkurl){
- // lnkurl might be an attack vector, only allow registered protocols
- if(is_null($this->schemes)) $this->schemes = getSchemes();
- list($scheme) = explode('://',$lnkurl);
- $scheme = strtolower($scheme);
- if(!in_array($scheme,$this->schemes)) $lnkurl = '';
- }
-
- if($lnkurl){
// title is escaped by SimplePie, we unescape here because it
// is escaped again in externallink() FS#1705
$this->externallink($item->get_permalink(),