diff --git a/lib/scm/gitlab.class.php b/lib/scm/gitlab.class.php index 783d46df5e..c0bab8b334 100644 --- a/lib/scm/gitlab.class.php +++ b/lib/scm/gitlab.class.php @@ -447,7 +447,7 @@ class gitlab $newLine->type = $type; $newLine->oldlc = $type != 'new' ? $oldCurrentLine : ''; $newLine->newlc = $type != 'old' ? $newCurrentLine : ''; - $newLine->line = htmlspecialchars($line); + $newLine->line = htmlSpecialString($line); if($type != 'new') $oldCurrentLine++; if($type != 'old') $newCurrentLine++; diff --git a/lib/scm/gitrepo.class.php b/lib/scm/gitrepo.class.php index 0d7cca6f6f..fe38065c89 100644 --- a/lib/scm/gitrepo.class.php +++ b/lib/scm/gitrepo.class.php @@ -427,7 +427,7 @@ class GitRepo $newLine->type = $type; $newLine->oldlc = $type != 'new' ? $oldCurrentLine : ''; $newLine->newlc = $type != 'old' ? $newCurrentLine : ''; - $newLine->line = htmlspecialchars($line); + $newLine->line = htmlSpecialString($line); if($type != 'new') $oldCurrentLine++; if($type != 'old') $newCurrentLine++;