[freeside-commits] freeside/httemplate/view svc_domain.cgi, 1.23, 1.23.2.1

Ivan,,, ivan at wavetail.420.am
Tue May 29 20:05:17 PDT 2007


Update of /home/cvs/cvsroot/freeside/httemplate/view
In directory wavetail:/tmp/cvs-serv8608

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	svc_domain.cgi 
Log Message:
fix javascript confirmation for domain records with " in them...

Index: svc_domain.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/view/svc_domain.cgi,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -d -r1.23 -r1.23.2.1
--- svc_domain.cgi	5 Feb 2007 12:51:05 -0000	1.23
+++ svc_domain.cgi	30 May 2007 03:05:12 -0000	1.23.2.1
@@ -51,7 +51,8 @@
       <td CLASS="grid" BGCOLOR="<% $bgcolor %>"><% $domain_record->recdata %>
 
 % unless ( $domain_record->rectype eq 'SOA' ) { 
-      (<A HREF="javascript:areyousure('<%$p%>misc/delete-domain_record.cgi?<%$domain_record->recnum%>', 'Delete \'<% $domain_record->reczone %> <% $type %> <% $domain_record->recdata %>\' ?' )">delete</A>)
+%   ( my $recdata = $domain_record->recdata ) =~ s/"/\\'\\'/g;
+      (<A HREF="javascript:areyousure('<%$p%>misc/delete-domain_record.cgi?<%$domain_record->recnum%>', 'Delete \'<% $domain_record->reczone %> <% $type %> <% $recdata %>\' ?' )">delete</A>)
 % } 
       </td>
     </tr>



More information about the freeside-commits mailing list