mirror of
https://github.com/owncloud/bookmarks.git
synced 2025-01-21 17:52:10 +01:00
Sanitize exported file properly
This commit is contained in:
parent
943c0afb8a
commit
09d0002622
@ -241,7 +241,7 @@ EOT;
|
||||
$url_parts = parse_url($bm['url']);
|
||||
$title = isset($url_parts['host']) ? OCA\Bookmarks\Controller\Lib\Helper::getDomainWithoutExt($url_parts['host']) : $bm['url'];
|
||||
}
|
||||
$file .= '<DT><A HREF="' . $bm['url'] . '" TAGS="' . implode(',', $bm['tags']) . '">';
|
||||
$file .= '<DT><A HREF="' . \OC_Util::sanitizeHTML($bm['url']) . '" TAGS="' . implode(',', \OC_Util::sanitizeHTML($bm['tags'])) . '">';
|
||||
$file .= htmlspecialchars($title, ENT_QUOTES, 'UTF-8') . '</A>';
|
||||
if ($bm['description'])
|
||||
$file .= '<DD>' . htmlspecialchars($bm['description'], ENT_QUOTES, 'UTF-8');
|
||||
|
Loading…
x
Reference in New Issue
Block a user