Branch: Tag:

2001-01-11

2001-01-11 22:17:42 by Johan Schön <js@opera.com>

Moved parse_authority to fix a problem case.

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

3:      // Implemented by Johan Sundström and Johan Schön.   // Copyright (c) Roxen Internet Software 2001 - // $Id: URI.pike,v 1.1 2001/01/11 17:16:44 js Exp $ + // $Id: URI.pike,v 1.2 2001/01/11 22:17:42 js Exp $      //! Scheme component of URI   string scheme;
214:    if(sscanf(uri, "//%[^/]%s", authority, uri))    {    debug("Found authority %O", authority); -  parse_authority(); +     }       // Parse query information
239:    scheme = base_uri->scheme;    debug("Inherited scheme %O from base URI", scheme);    +  if(authority) +  parse_authority(); +  +     // 4) If the authority component is defined, then the reference is a    // network-path and we skip to step 7. Otherwise, the reference    // URI's authority is inherited from the base URI's authority