[Swfdec] [Bug 16716] swfdec doesn't handle uri encoding, leading to failures on file :///

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Jul 15 20:44:39 PDT 2008


http://bugs.freedesktop.org/show_bug.cgi?id=16716





--- Comment #5 from Alex Rostovtsev <tetromino at gmail.com>  2008-07-15 20:44:38 PST ---
Created an attachment (id=17694)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=17694)
swfdec-0.6.6-uri-encoding.patch

Patch to fix the problem.

What it does:

1. Documents what fields, parameters and return values are supposed to be in
filesystem encoding (the parameter to swfdec_url_new_from_input(), so long as
it doesn't look like a URL), and which ones are URI-encoded (everything else).
2. Adds URI-encoding logic to swfdec_url_new_from_input()
3. Adds a function for converting URI-encoded strings to UTF-8
4. Adds URI-decoding logic to swfdec_url_format_for_display()
5. Adds URI-decoding logic to SwfdecFileLoader.

With this patch, swfdec-player correctly opens weirdly-named swf files both
from Nautilus, from command line, and from its own file dialog. And even the
window title is correct!

The patch is for swfdec-0.6.6, but it seems to also apply OK to 0.7.2.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the Swfdec mailing list