#4135 ipv6 address url http://[nnnn:mmmm::1234]:10000 errror

1.590
closed-fixed
nobody
None
5
2012-09-06
2012-09-06
Christian
No

hi,
if i enter in browser a ipv6 address in this syntax:

http://\[2001:6f8:900:8dff::4242]:10000/

to login, i get redirected to:

HTTP/1.0 302 Moved Temporarily
Date: Wed, 5 Sep 2012 08:45:00 GMT
Server: MiniServ/1.590
Set-Cookie: sid=d...d; path=/
Location: http://\[2001:6f8:900:8dff::4242]:10000:10000/
Connection: close

i think in miniserv.pl is an error in matching ipv6 addresses.
here my dirty patch:

miniSUSE:~ # diff /usr/libexec/webmin/miniserv.pl /usr/libexec/webmin/miniserv.pl-org
1393,1398c1393
< if ($header{'host'} =~ /^(\[[0-9a-fA-F:.]+\]):([0-9]+)$/) {
< ($host, $port) = ($1, $2);
< }
< else {
< $host = $header{'host'};
< }
---
> $host = $header{'host'};

now i can login:
HTTP/1.0 302 Moved Temporarily
Date: Thu, 6 Sep 2012 20:15:31 GMT
Server: MiniServ/1.590
Set-Cookie: sid=c...7; path=/
Location: http://\[2001:6f8:900:8dff::4242]:10000/
Connection: close

same in usermin.

could you please check and if possible change.
tia

christian

Discussion

  • Jamie Cameron

    Jamie Cameron - 2012-09-06
    • status: open --> closed-fixed
     
  • Jamie Cameron

    Jamie Cameron - 2012-09-06

    Thanks for pointing this out - I will fix it in the next release of Webmin

     

Log in to post a comment.