diff options
author | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-09-26 03:48:22 -0700 |
---|---|---|
committer | Bernhard Posselt <Raydiation@users.noreply.github.com> | 2013-09-26 03:48:22 -0700 |
commit | 7ea5a6b4881621f5a6ce43e18d6bc748bbeb7637 (patch) | |
tree | 6197b04d6c670c7aa0e2051c67aa6adbb8e751c0 /utility | |
parent | 6d5e8373a9dd79c16a028d4799a6325b885f143f (diff) | |
parent | ca0b341401d1f577a4d14f02161ea794c8cb1d28 (diff) |
Merge pull request #373 from bastei/relativeurlsfix
ArticleEnhancer: convert relative urls to html characters
Diffstat (limited to 'utility')
-rw-r--r-- | utility/articleenhancer/articleenhancer.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utility/articleenhancer/articleenhancer.php b/utility/articleenhancer/articleenhancer.php index 823ddcc18..6450f638d 100644 --- a/utility/articleenhancer/articleenhancer.php +++ b/utility/articleenhancer/articleenhancer.php @@ -121,7 +121,7 @@ abstract class ArticleEnhancer { $xpathResult = $xpath->query("//*[@".$attribute." and not(contains(@".$attribute.", '://')) and not(starts-with(@".$attribute.", 'mailto:'))]"); foreach ($xpathResult as $linkNode) { $urlElement = $linkNode->attributes->getNamedItem($attribute); - $urlElement->nodeValue = $this->relativeToAbsoluteUrl( $urlElement->nodeValue, $absoluteUrl ); + $urlElement->nodeValue = htmlentities( $this->relativeToAbsoluteUrl( $urlElement->nodeValue, $absoluteUrl ) ); } } |