Skip to content

Commit

Permalink
Added whitespace check in regular expression
Browse files Browse the repository at this point in the history
  • Loading branch information
williamsandy committed Sep 2, 2016
1 parent 8be121a commit 86510c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/joomla/database/query/sqlsrv.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ public function group($columns)
foreach ($this->join as $join)
{

$joinStr = trim(preg_replace("/.*JOIN/i","" ,(string)$join));
$joinStr = trim(preg_replace("/.*\sJOIN/i","" ,(string)$join));

if (strpos($joinStr,' AS ') !== false)
{
Expand Down

0 comments on commit 86510c0

Please sign in to comment.