Skip to content

Commit

Permalink
an URL can be case sensitive: removed strtolower from HTMLConverter.r…
Browse files Browse the repository at this point in the history
…eplaceLinks()
  • Loading branch information
dedalozzo committed Mar 8, 2015
1 parent 379198b commit 88a2e96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Converter/HTMLConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function ($matches) {

// Extracts the url.
if (preg_match('/\s*href\s*=\s*("([^"]*")|\'[^\']*\'|([^\'">\s]+))/iu', $matches[0], $others) === 1) {
$href = strtolower(trim($others[1], '"'));
$href = trim($others[1], '"');

// Extracts the target.
if (preg_match('/\s*target\s*=\s*("([^"]*")|\'[^\']*\'|([^\'">\s]+))/iu', $matches[0], $others) === 1)
Expand Down

0 comments on commit 88a2e96

Please sign in to comment.