Branch: Tag:

2015-09-28

2015-09-28 11:44:57 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Pike 8.0: More Roxen.fix_relative() fixes. Fixes [bug 7566 (#7566)].

fix_relative("//foo.menu") expanded to "//foo.menu/" rather than
the expected identity operation.

3221:    uri = Standards.URI(id->not_query, uri);    }    uri = Standards.URI(file, uri); +  if (uri->path != "") { +  // NB: Without the above test "" will expand to "/". +  // cf [bug 7566].    uri->path = (uri->combine_uri_path("", uri->path)/"/" - ({ ".." })) * "/"; -  +  }    string res = sprintf("%s", uri);    // +(id->misc->path_info?id->misc->path_info:"");    if (has_prefix(res, "://") && !has_prefix(file, "://") &&