Permalink
Browse files

Tidy up regex for _escapeAttributeValues

  • Loading branch information...
1 parent b26b571 commit 055057ad8f7b15b412ede247df58979dafb052b8 @dextercowley committed Nov 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 libraries/joomla/filter/filterinput.php
@@ -672,7 +672,7 @@ protected function _escapeAttributeValues($source)
$escapedChars = array('<', '"', '>');
// Process each portion based on presence of =" and "<space>, "/>, or ">
// See if there are any more attributes to process
- while (preg_match('#<{1}[^>]*?=\s*?(\"|\')#s', $remainder, $matches, PREG_OFFSET_CAPTURE))
+ while (preg_match('#<[^>]*?=\s*?(\"|\')#s', $remainder, $matches, PREG_OFFSET_CAPTURE))
{
// get the portion before the attribute value
$quotePosition = $matches[0][1];

0 comments on commit 055057a

Please sign in to comment.