Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 74112 - Squid and underscores
Summary: Squid and underscores
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor
Assignee: Andrew Bevitt
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-11 09:27 UTC by Danilo
Modified: 2004-12-11 15:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Danilo 2004-12-11 09:27:09 UTC
When I try to access a domain with a underscore, squid gives the following error:

The following error was encountered:

    * Invalid URL 

Some aspect of the requested URL is incorrect. Possible problems:

    * Missing or incorrect access protocol (should be `http://'' or similar)
    * Missing hostname
    * Illegal double-escape in the URL-Path
    * Illegal character in hostname; underscores are not allowed 

To solve this problem, squid should be configured with --enable-underscores

From the squid configure help, this option is:
Squid by default rejects any host names with _ in their name to conform with internet standards.If you disagree with this you may allow _ in hostnames by using this switch, provided that the resolver library on the host where Squid runs does not reject _ in hostnames...

Reproducible: Always
Steps to Reproduce:
1. Visit some paga with an underscore on the domain name
2.
3.

Actual Results:  
The error mentioned above happened

Expected Results:  
The page should open
Comment 1 Andrew Bevitt 2004-12-11 15:55:04 UTC
Fixed in cvs, version 2.5 STABLE7

See USE="underscores"

This was there all along, except the actual flag wasn't portage implemented.
Be warned that using --enable-underscores may cause problems with your DNS resolver.

Wait half an hour from now and sync your tree, then remerge squid-2.5.7