[cups.general] '#' in device URIs

Michael Sweet mike at easysw.com
Thu Aug 17 11:12:42 PDT 2006


Tim Waugh wrote:
> Hi,
> 
> I just had this bug report:
>   https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=202977
> 
> The problem is that smb: URIs can get truncated if there is a password
> containing the '#' character, like this:
> 
>   DeviceURI smb://test:test123#@domain/printserver/printer
> 
> which gets read as:
> 
>   DeviceURI smb://test:test123
> 
> Should CUPS treat the '#' comment character in the same way that bash
> does, i.e. treat it as a comment character only when at the beginning of
> a word?

The # needs to be % encoded, as required by the URI spec...

(FWIW, this is automatically handled by httpAssembleURI function
provided in 1.2 and higher...)

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com




More information about the cups mailing list