[hafqa] [hafqa] [Bug 509] GnomeVFSURI mistakenly translates '//' into '/' when middle of the url
From: bugzilla-daemon at maemo.org bugzilla-daemon at maemo.orgDate: Wed Oct 4 22:16:59 EEST 2006
- Previous message: [hafqa] [Bug 795] Const build problems
- Next message: [hafqa] [Bug 789] apt-get upgrade from sardine repot breaks apps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
https://maemo.org/bugzilla/show_bug.cgi?id=509 koos.vriezen at gmail.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From koos.vriezen at gmail.com 2006-10-04 22:16 ------- Well that's the whole point, I couldn't find a good escape function. They all removed the second slash. Ok, some code: GnomeVFSHandle *handle; GnomeVFSResult result; char *uri = "http://localhost/~koos/phpinfo.php?rewrite=http://www"; gnome_vfs_init (); fprintf (stderr, "%s -> %s\n", uri, gnome_vfs_escape_string (uri)); fprintf (stderr, "%s -> %s\n", uri, gnome_vfs_escape_slashes (uri)); fprintf (stderr, "%s -> %s\n", uri, gnome_vfs_make_uri_from_input (uri)); fprintf (stderr, "%s -> %s\n", uri, gnome_vfs_make_uri_canonical (uri)); GnomeVFSURI* guri = gnome_vfs_uri_new (uri); result = gnome_vfs_open_uri (&handle, guri, GNOME_VFS_OPEN_READ); if (result == GNOME_VFS_OK) { ... results in: http://localhost/~koos/phpinfo.php?rewrite=http://www -> http%3A%2F%2Flocalhost%2F~koos%2Fphpinfo.php%3Frewrite%3Dhttp%3A%2F%2Fwww http://localhost/~koos/phpinfo.php?rewrite=http://www -> http: %2F%2Flocalhost%2F~koos%2Fphpinfo.php?rewrite=http:%2F%2Fwww http://localhost/~koos/phpinfo.php?rewrite=http://www -> http://localhost/~koos/phpinfo.php?rewrite=http://www http://localhost/~koos/phpinfo.php?rewrite=http://www -> http://localhost/~koos/phpinfo.php?rewrite=http:/www and the query that the phpinfo page shows has line _SERVER["QUERY_STRING"] rewrite=http:/www So none of the escaping function generates a something like http://localhost/~koos/phpinfo.php?rewrite=http:%2F%2Fwww Reopening, but of course if I missed the escaping function, please share it with me. -- Configure bugmail: https://maemo.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug, or are watching the QA contact.
- Previous message: [hafqa] [Bug 795] Const build problems
- Next message: [hafqa] [Bug 789] apt-get upgrade from sardine repot breaks apps
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]