If you upload an mp3 with spaces in the filename, the resulting feed leaves those spaces as is instead of changing them to %20. This makes the feed break in iTunes (some versions at least) and not validate in feedvalidator.
Arguably minor, but it's a bit too easy for a user to break a feed, with no real feedback as to what went wrong.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | spacing_in_filename-892690-5.patch | 560 bytes | ewills |
Comments
Comment #1
drewish commentedI looked around a bit to see if i could find documentation on if the enclosure should be URL encoded and couldn't find anything definitive. What's the error that feed validator is reporting?
Comment #2
mattgilbert commentedFor a file named "1 1.mp3", Feedvalidator says "line 28, column 1: url must be a full URL: http://example.com/files/1 1.mp3"
Documentation on the error here: http://feedvalidator.org/docs/error/InvalidURLAttribute.html
Comment #3
drewish commentedwhat are you using to upload the files?
Comment #4
mattgilbert commentedIt's a single filefield, using the regular file upload widget. Firefox.
Comment #5
ewills commentedMay have come 2 years too late, but I've just come across this issue and written a tiny patch to fix it, attached.