LinHES Forums
http://forum.linhes.org/

Spaces in channel icon file names...
http://forum.linhes.org/viewtopic.php?f=6&t=7448
Page 1 of 1

Author:  tuatara [ Mon Dec 19, 2005 3:47 pm ]
Post subject:  Spaces in channel icon file names...

One of the sources for channel icons in New Zealand uses spaces in their file names. This causes mythfilldatabase to go awry.

It looks like mythfilldatabase inserts the icon URL into the database, and then refetches the URL before calling wget to fetch it. I have tried replacing the space with %20, but that is interpreted before placing the value in the database. So wget still gets passed a space.

I tried surrounding the URL with "'url.jpg'" (i.e. two sets of dissimilar quotes. Interestingly you get url.jpg' stored in the db - the outer " and first ' disappears.

I think the proper answer is that when mythfilldatabase calls wget, it should surround the URL in quotes.

Paul

p.s. as I write, one thing that occurs to me is double escaping the %20 - like:
%25%32%30
or escaping the quotes:
%22my url.jpg%22

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/