* Compatibility in scm.

This commit is contained in:
zhujinyong
2021-11-18 13:39:01 +08:00
parent 8c1cc5c875
commit 98a3b04e99
2 changed files with 2 additions and 2 deletions

View File

@@ -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++;

View File

@@ -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++;