Revision: 1798
http://gatewiki.svn.sourceforge.net/gatewiki/?rev=1798&view=revAuthor: ian_roberts
Date: 2009-11-10 11:08:27 +0000 (Tue, 10 Nov 2009)
Log Message:
-----------
Use null-safe-dereference on the javascript variable assignments.
Modified Paths:
--------------
trunk/cow/grails-app/views/page/show.gsp
Modified: trunk/cow/grails-app/views/page/show.gsp
===================================================================
--- trunk/cow/grails-app/views/page/show.gsp 2009-11-10 11:04:56 UTC (rev 1797)
+++ trunk/cow/grails-app/views/page/show.gsp 2009-11-10 11:08:27 UTC (rev 1798)
@@ -9,9 +9,9 @@
</g:else>
<g:cowTitle pageName="${pagePath}" />
<g:javascript>
- var id = '${id.encodeAsJavaScript()}';
- var pathDir = '${pagePathDir.encodeAsJavaScript()}';
- var uploadLink = '${uploadLink?.encodeAsJavaScript()}'
+ var id = '${id?.encodeAsJavaScript()}';
+ var pathDir = '${pagePathDir?.encodeAsJavaScript()}';
+ var uploadLink = '${uploadLink?.encodeAsJavaScript()}';
</g:javascript>
</head>
<body>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.
http://p.sf.net/sfu/bobj-july_______________________________________________
gatewiki-commits mailing list
gatewiki-commits@...
https://lists.sourceforge.net/lists/listinfo/gatewiki-commits