diff options
| author | ivan <ivan> | 2007-05-30 03:05:11 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2007-05-30 03:05:11 +0000 | 
| commit | 2c5388c6e17eda8b1bcffce207a88d2da05d91ca (patch) | |
| tree | 1672c4bf40d24402ed392d0d64a4d3e978853263 /httemplate/view | |
| parent | 2033c421778e095bfd6fe22f825aade507296efe (diff) | |
fix javascript confirmation for domain records with " in them...
Diffstat (limited to 'httemplate/view')
| -rwxr-xr-x | httemplate/view/svc_domain.cgi | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/httemplate/view/svc_domain.cgi b/httemplate/view/svc_domain.cgi index 7fdce37df..8653c4f42 100755 --- a/httemplate/view/svc_domain.cgi +++ b/httemplate/view/svc_domain.cgi @@ -51,7 +51,8 @@ Service #<% $svcnum %>        <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> | 
