summaryrefslogtreecommitdiffstats
path: root/utility/articleenhancer/articleenhancer.php
diff options
context:
space:
mode:
Diffstat (limited to 'utility/articleenhancer/articleenhancer.php')
-rw-r--r--utility/articleenhancer/articleenhancer.php2
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 ) );
}
}