Skip to content

Commit

Permalink
Fix return value of Formatter.toString() when type is text
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Dec 5, 2016
1 parent fa440b9 commit 5f79069
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## [Unreleased]

* Fix return value of Formatter.toString() when type is text

## [3.4.14] - 2016-11-30

* Improved parsing of UNION queries.
Expand Down
1 change: 1 addition & 0 deletions src/Utils/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ public function toString($token)
} elseif ($this->options['type'] === 'html') {
return htmlspecialchars($text, ENT_NOQUOTES);
}
return $text;
}

/**
Expand Down

0 comments on commit 5f79069

Please sign in to comment.