Permalink
Browse files

Merge pull request #2812 from kerstinbasilicom/pimcore4

urlencode double quotes (") for anchors in link editable
  • Loading branch information...
brusch committed May 2, 2018
2 parents 3f733b6 + 553d5a8 commit c1ecc8de498e9221013b58dc70219010abb6e82a
Showing with 3 additions and 1 deletion.
  1. +3 −1 pimcore/models/Document/Tag/Link.php
@@ -150,7 +150,9 @@ public function getHref()
}
if (strlen($this->data["anchor"]) > 0) {
$url .= "#" . str_replace("#", "", $this->getAnchor());
$anchor = $this->getAnchor();
$anchor = str_replace('"', urlencode('"'), $anchor);
$url .= "#" . str_replace("#", "", $anchor);
}
return $url;

0 comments on commit c1ecc8d

Please sign in to comment.