From 98a3b04e99b2131df8835cf6261ffa12a02f2607 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Thu, 18 Nov 2021 13:39:01 +0800 Subject: [PATCH] * Compatibility in scm. --- lib/scm/gitlab.class.php | 2 +- lib/scm/gitrepo.class.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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++;