Subject: | Bug related to URLs starting with '0' (zero) |
Date: | Thu, 6 Mar 2014 03:24:01 -0800 |
To: | "bug-ParseUtil-Domain [...] rt.cpan.org" <bug-ParseUtil-Domain [...] rt.cpan.org> |
From: | Mayur Kulkarni <Mayur_Kulkarni [...] symantec.com> |
Hi,
We are seeing these URLs:
0.18.g4syumvlxgw9.net
0.5.8plqin63zek2.net
0.rq.g4syumvlxgw9.net
When we submit these URLs to parse_domain, it gives out an error:
error = Error processing domain. Please report to package maintainer. empty segment
On digging in the source code, I found that an if condition was failing to find segments, specifically because of URL starting with '0'.
This problem was found in the 'sub _punycode_segments' and condition:
if (not $segment || $segment eq '') {
return {
'error' => "Error processing domain. Please report to package maintainer. empty segment"
};
} #end if
If $segment variable was found to be zero, as in the above sample urls, this subroutine would fail and return no values.
Please do check the above bug and please let us know of any actions taken.
Thanks
Show quoted text
________________________________
Mayur Kulkarni
Software Engineer, Star Technology & Response
Symantec Corporation
www.symantec.com<http://www.symantec.com/>
Office: +91 20 67154244
Mobile: +91 9371290112
mayur_kulkarni@symantec.com<mailto:mayur_kulkarni@symantec.com>
[cid:image001.png@01CF395C.ACCCEF80]