diff options
author | ivan <ivan> | 2007-05-30 03:05:12 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-05-30 03:05:12 +0000 |
commit | 28d4439d08924f220872ec795343fcb36d7d3299 (patch) | |
tree | 5fe040f3ea6a3a1baf8d238289a50c5ab00ddebe | |
parent | 5d4b3f2625866336436e410528d91549d65a205f (diff) |
fix javascript confirmation for domain records with " in them...
-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> |