[Rt-commit] rt branch, 4.0/suppress-dashboard-javascript, created. rt-4.0.6-126-g68e12a7
Kevin Falcone
falcone at bestpractical.com
Wed Jun 6 22:35:42 EDT 2012
The branch, 4.0/suppress-dashboard-javascript has been created
at 68e12a79cf5dfef9533c5cb3054e4bb070769014 (commit)
- Log -----------------------------------------------------------------
commit 68e12a79cf5dfef9533c5cb3054e4bb070769014
Author: Kevin Falcone <falcone at bestpractical.com>
Date: Wed Jun 6 21:34:28 2012 -0500
Use the $JavaScript argument to hide some JS that Outlook and Lotus
can't parse.
This makes Dashboards render better. We really want the dashboard
renderer to be able to strip anything (since you can inject JS through
other config options and might cause problem) but this is a quick
solution to make it perform better on popular mail clients.
diff --git a/share/html/Elements/Header b/share/html/Elements/Header
index 4a6ac26..edf2d05 100755
--- a/share/html/Elements/Header
+++ b/share/html/Elements/Header
@@ -54,7 +54,9 @@
<head>
<title><%$Title%></title>
+% if ($JavaScript) {
<& /Elements/Framekiller &>
+% }
% if ($Refresh && $Refresh =~ /^(\d+)/ && $1 > 0) {
% my $URL = $m->notes->{RefreshURL}; $URL = $URL ? ";URL=$URL" : "";
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list