Branch: Tag:

2011-03-24

2011-03-24 23:33:41 by Martin Nilsson <nilsson@opera.com>

Fixed crash for URIs with query variable without value.

63:   test_equal((string)Standards.URI("http:g", "http://a/b/c/d;p?q"), "http:g")   test_equal(Standards.URI("http://www.com/")->get_query_variables(),([]))   test_equal(Standards.URI("http://www.com/?a=b")->get_query_variables(),(["a":"b"])) + test_equal(Standards.URI("http://www.com/?a=b&a=b")->get_query_variables(),(["a":"b"])) + test_equal(Standards.URI("http://www.com/?a=b&c")->get_query_variables(),(["a":"b","c":0])) + test_eval_error(Standards.URI("www.com")) + test_eq((string)Standards.URI("www.com","http://"),"http://www.com") + test_eq((string)Standards.URI("ftp://www.com/x?a=b#y","http://"),"ftp://www.com/x?a=b#y")   // Some tests of empty path followed by a query.   test_eq(Standards.URI("http://user:??@host?query")->query, "query")   test_eq(Standards.URI("http://user:??@host?query")->password, "??")