Skip to content

Commit

Permalink
Getting closer. Fixed Sniffer issues, I think.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathewlenning committed Mar 7, 2015
1 parent 52099a9 commit 76d8e98
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions libraries/joomla/filter/input.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ public function clean($source, $type = 'string')
}

$result = $source;

// Or a string?
if (is_string($source) && !empty($source))
{
Expand Down Expand Up @@ -539,7 +540,7 @@ protected function _cleanTags($source)
// Reformat single tags to XHTML
if (!strpos($fromTagOpen, '</' . $tagName))
{
$closeWith = ' /'.$closeWith;
$closeWith = ' /' . $closeWith;
}

$preTag .= $closeWith;
Expand Down Expand Up @@ -602,7 +603,7 @@ protected function _cleanAttributes($attrSet)
if ((!preg_match('/[a-z]*$/i', $attrSubSet[0]))
|| (($this->xssAuto) && ((in_array(strtolower($attrSubSet[0]), $this->attrBlacklist))
|| (substr($attrSubSet[0], 0, 2) == 'on')))
|| !isset($attrSubSet[1]))
|| !isset($attrSubSet[1]))
{
continue;
}
Expand Down

0 comments on commit 76d8e98

Please sign in to comment.