Permalink
Browse files

All classes should have a default sanitizer

  • Loading branch information...
1 parent 0235adb commit 58835c6c693e6439e506269514708937ea12a1ed @CloCkWeRX CloCkWeRX committed Dec 9, 2011
View
@@ -125,6 +125,7 @@ function __construct(DOMDocument $model, $strict = false)
$this->xpath = new DOMXPath($this->model);
$this->xpath->registerNamespace('atom', 'http://www.w3.org/2005/Atom');
$this->numberEntries = $this->count('entry');
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -95,6 +95,7 @@ function __construct(DOMElement $element, $parent, $xmlBase = '')
$this->xmlBase = $xmlBase;
$this->xpathPrefix = "//atom:entry[atom:id='" . $this->id . "']/";
$this->xpath = $this->parent->xpath;
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -39,4 +39,3 @@ class XML_Feed_Parser_Exception extends PEAR_Exception
}
-?>
@@ -111,6 +111,7 @@ function __construct(DOMDocument $model, $strict = false)
$this->xpath->registerNamespace($key, $value);
}
$this->numberEntries = $this->count('item');
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -56,7 +56,8 @@ function __construct(DOMElement $element, $parent, $xmlBase = '')
{
$this->model = $element;
$this->parent = $parent;
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
}
-?>
+?>
View
@@ -131,6 +131,7 @@ function __construct(DOMDocument $model, $strict = false)
$this->xpath->registerNamespace($key, $value);
}
$this->numberEntries = $this->count('item');
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -133,6 +133,7 @@ function __construct(DOMDocument $model, $strict = false)
$this->xpath->registerNamespace($key, $value);
}
$this->numberEntries = $this->count('item');
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -82,6 +82,7 @@ function __construct(DOMElement $element, $parent, $xmlBase = '')
{
$this->model = $element;
$this->parent = $parent;
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -82,6 +82,7 @@ function __construct(DOMElement $element, $parent, $xmlBase = '')
{
$this->model = $element;
$this->parent = $parent;
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
View
@@ -126,6 +126,7 @@ function __construct(DOMDocument $model, $strict = false)
$this->xpath->registerNamespace($key, $value);
}
$this->numberEntries = $this->count('item');
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -77,6 +77,7 @@ function __construct(DOMElement $element, $parent, $xmlBase = '')
{
$this->model = $element;
$this->parent = $parent;
+ $this->setSanitizer(new XML_Feed_Parser_Unsafe_Sanitizer());
}
/**
@@ -168,4 +169,4 @@ protected function getSource()
}
}
-?>
+?>

0 comments on commit 58835c6

Please sign in to comment.