Branch: Tag:

2006-05-04

2006-05-04 13:40:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added support for relative URIs only containing the query segment.
eg: Standards.URI("?foo=bar", "http://www.example.com/gazonk.xml");

Rev: lib/modules/Standards.pmod/URI.pike:1.22

4:   //! absolute form, as defined in RFC 2396 and RFC 3986.      // Implemented by Johan Sundström and Johan Schön. - // $Id: URI.pike,v 1.21 2005/03/31 01:17:24 nilsson Exp $ + // $Id: URI.pike,v 1.22 2006/05/04 13:40:40 grubba Exp $      #pragma strict_types   
244:    DEBUG("Found query %O", query);       // Parse path: +  if ((uri == "") && (this_program::base_uri)) { +  // Empty path. +  path = this_program::base_uri->path; +  } else {    path = uri; -  +  }    DEBUG("Found path %O", path);       // 3) If the scheme component is defined, indicating that the reference