If you renew a domain in manage.cgi, and the domain you're renewing is the
domain you're currently managing, the resulting renewal confirmation screen
doesn't show the updated expiration date in the header. This is a Bad Thing.

This patch fixes it by updating $expiredate with the new expiration date
returned from the server before passing $expiredate to the HTML output.


Index: cgi/manage.cgi
===================================================================
RCS file: /home/cvs/tigertech/opensrs/cgi/manage.cgi,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 manage.cgi
--- cgi/manage.cgi      2001/02/06 02:20:57     1.1.1.2
+++ cgi/manage.cgi      2001/02/08 09:04:36
@@ -2661,4 +2661,7 @@
        error_out("Failed attempt to renew domain: $response->{response_text}\n");
        exit;
     }
+    if ($domain eq $reg_domain) {
+       $expiredate = ($response->{attributes}->{'registration expiration date'});
+    }
 } 


Hope this helps.

--
Robert L Mathews, Tiger Technologies

Reply via email to