Smarty's escape is too aggressive, the single quote escape is interfering with the example bug pattern
Smarty's escape is too aggressive, the single quote escape is interfering with the example bug pattern

--- a/templates/commit.tpl
+++ b/templates/commit.tpl
@@ -65,7 +65,7 @@
    {assign var=bugpattern value=$project->GetBugPattern()}
    {assign var=bugurl value=$project->GetBugUrl()}
    {foreach from=$commit->GetComment() item=line}
-     {$line|escape|buglink:$bugpattern:$bugurl}<br />
+     {$line|htmlspecialchars|buglink:$bugpattern:$bugurl}<br />
    {/foreach}
  </div>
  <div class="list_head">

--- a/templates/commitdiff.tpl
+++ b/templates/commitdiff.tpl
@@ -23,7 +23,7 @@
    {assign var=bugpattern value=$project->GetBugPattern()}
    {assign var=bugurl value=$project->GetBugUrl()}
    {foreach from=$commit->GetComment() item=line}
-     {$line|escape|buglink:$bugpattern:$bugurl}<br />
+     {$line|htmlspecialchars|buglink:$bugpattern:$bugurl}<br />
    {/foreach}
    <br />
    {* Diff each file changed *}

--- a/templates/log.tpl
+++ b/templates/log.tpl
@@ -70,7 +70,7 @@
      {assign var=bugpattern value=$project->GetBugPattern()}
      {assign var=bugurl value=$project->GetBugUrl()}
      {foreach from=$rev->GetComment() item=line}
-       {$line|escape|buglink:$bugpattern:$bugurl}<br />
+       {$line|htmlspecialchars|buglink:$bugpattern:$bugurl}<br />
      {/foreach}
      {if count($rev->GetComment()) > 0}
        <br />

--- a/templates/tag.tpl
+++ b/templates/tag.tpl
@@ -53,7 +53,7 @@
    {assign var=bugpattern value=$project->GetBugPattern()}
    {assign var=bugurl value=$project->GetBugUrl()}
    {foreach from=$tag->GetComment() item=line}
-     {$line|escape|buglink:$bugpattern:$bugurl}<br />
+     {$line|htmlspecialchars|buglink:$bugpattern:$bugurl}<br />
    {/foreach}
  </div>
 

comments