Hi all

The current client code handles internationalized domains in a strange way: It shows the queried domain in punycode and the additionally suggested domains in their native form.

I've patched the code. It's probably not the most elegant way to correct this issue, but it works.

Regards

Arthur

--- opensrs-client-3.0.0.orig/cgi/reg_system.cgi 2008-03-18 20:31:14.000000000 +0100 +++ opensrs-client-3.0.0/cgi/reg_system.cgi 2008-10-22 23:15:02.000000000 +0200
@@ -1242,6 +1242,7 @@
     my (%HTML,$status,$match_string,$matches);
     my ($xcp_request,$lookup_results,$match,$error_msg);
     my ($matchRef);
+    my ($native_domain);

     my $domain         = native_to_puny(trim($in{domain}), \%OPENSRS);
     my $affiliate_id   = $in{affiliate_id};
@@ -1268,9 +1269,10 @@
             )) {
        
            $matches = $lookup_results->{attributes}->{matches}||[];
+            $native_domain = puny_to_native($domain, , \%OPENSRS);
            $match_string = <<EOF;
 <center>
-<input type=checkbox name=domain value="$domain" checked> $domain&nbsp;&nbsp; +<input type=checkbox name=domain value="$native_domain" checked> $native_domain&nbsp;&nbsp;
 EOF
            my $counter = 1;

@@ -1323,7 +1325,7 @@
            $match_string .= "</center>\n";

            $HTML{matches}      = $match_string;
-           $HTML{domain}       = $domain;
+           $HTML{domain}       = $native_domain;
            $HTML{CGI}          = $cgi;
            $HTML{OrderCGI}     = $cgi;
            $HTML{method}       = 'POST';
_______________________________________________
domains-gen mailing list
[email protected]
http://discuss.tucows.com/mailman/listinfo/domains-gen

Reply via email to