[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 12:04:59 PDT 2008


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





--- Comment #4 from Alex Rostovtsev <tetromino at gmail.com>  2008-07-15 12:04:58 PST ---
Created an attachment (id=17683)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=17683)
swf file that tests whether encoded URLs work

As can be seen from this test file, Adobe's plugin expects URLs to be in valid
URI encoding; if the URL is raw UTF-8, it won't load.

(Note that this example does not work on swfdec-0.6.6 for some reason)

---------
.flash filename="urltest.swf" bbox=400x100 version=7 background="#dddddd"

.action:
        var url1 = "%D0%B8%D0%B1%D1%80%D0%B0%D0%B6%D1%8B.swf";
        var url2 = "ибражы.swf";
        createTextField("t0", 0, 0, 0, 400, 20);
        t0.text = "Try click on the relative URLs below";
        createTextField("t1", 1, 0, 30, 400, 20);
        createTextField("t2", 2, 0, 60, 400, 20);

        var f1 = new TextFormat();
        f1.url = url1;
        t1.text = "Encoded URL works: " + url1;
        t1.html = true;
        t1.setTextFormat(f1);

        var f2 = new TextFormat();
        f2.url = url2;
        t2.text = "UTF-8 URL does not load: " + url2;
        t2.html = true;
        t2.setTextFormat(f2);
.end
.end


-- 
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