[Yum-devel] conf parsing and spaces in urls
Michael Stenner
mstenner at linux.duke.edu
Thu Dec 7 21:58:49 UTC 2006
On Thu, Dec 07, 2006 at 01:17:43PM -0500, seth vidal wrote:
> Hey,
> Someone was kind enough to point out that spaces in urls work
> dramatically unwell in yum's config file b/c we're splitting on ' ' to
> break it out into a list. I was wondering if:
>
> 1. why can't we just use the %20 escape for a url?
I had to deal with this issue in urlgrabber a while back. It now
guesses whether a url is properly encoded or not. If you're good
about either fully encoding a url or not, then it should be fine. So,
in my humble opinion, yes... you should just be able to do %20 (and
any other wacky escapes) and you'll be OK. Let me know if urlgrabber
chokes on anything.
> 2. is there something obvious that should be done instead?
No. People put a lot of thought into escaping urls. We should use
that. Cooking up our own scheme (shell-like escapes, for example)
would just add more layers of pain and cause debugging nightmares.
-Michael
--
Michael D. Stenner mstenner at ece.arizona.edu
ECE Department and Optical Sciences Center 520-626-1619
University of Arizona ECE 524G
More information about the Yum-devel
mailing list