[freeside-commits] branch FREESIDE_3_BRANCH updated. 228d0171b07879ce7a585c87aa5580237df74842
Ivan
ivan at 420.am
Tue Sep 5 18:30:03 PDT 2017
The branch, FREESIDE_3_BRANCH has been updated
via 228d0171b07879ce7a585c87aa5580237df74842 (commit)
from 47b0ac0d43024d79009fccd8fea34e0136545068 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 228d0171b07879ce7a585c87aa5580237df74842
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue Sep 5 18:30:02 2017 -0700
if a single entry has bad UTF-8 chars, error out on that entry only instead of the whole conf page
diff --git a/httemplate/config/config-view.cgi b/httemplate/config/config-view.cgi
index a52c1e9..7b2e55a 100644
--- a/httemplate/config/config-view.cgi
+++ b/httemplate/config/config-view.cgi
@@ -200,11 +200,15 @@ invoice language options:
<tr>
<td id="<% $agentnum.$i->key.$n %>" bgcolor="#ffffff">
-<font size="-2"><pre><% encode_entities(join("\n",
- map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
- $conf->config($i->key, $agentnum)
- ) )
-%></pre></font>
+
+% my $escaped = eval { encode_entities(join("\n",
+% map { length($_) > 88 ? substr($_,0,88).'...' : $_ }
+% $conf->config($i->key, $agentnum)
+% ) );
+% };
+% $escaped = $@ ? '('.encode_entities($@).')' : $escaped;
+<font size="-2"><pre><% $escaped %></pre></font>
+
</td>
</tr>
-----------------------------------------------------------------------
Summary of changes:
httemplate/config/config-view.cgi | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
More information about the freeside-commits
mailing list