From 02aadc25af61ecdcafa043dde6b7cdc02c2da1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Sch=C3=B6n?= <js@opera.com> Date: Thu, 11 Jan 2001 23:17:42 +0100 Subject: [PATCH] Moved parse_authority to fix a problem case. Rev: lib/modules/Standards.pmod/URI.pike:1.2 --- lib/modules/Standards.pmod/URI.pike | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/modules/Standards.pmod/URI.pike b/lib/modules/Standards.pmod/URI.pike index 3a4c204253..5c3f460818 100644 --- a/lib/modules/Standards.pmod/URI.pike +++ b/lib/modules/Standards.pmod/URI.pike @@ -3,7 +3,7 @@ // 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,7 +214,6 @@ void reparse_uri(object|string|void _base_uri) if(sscanf(uri, "//%[^/]%s", authority, uri)) { debug("Found authority %O", authority); - parse_authority(); } // Parse query information @@ -238,6 +237,10 @@ void reparse_uri(object|string|void _base_uri) } 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 -- GitLab