From 84656e336e452e1ff4e1debbd5885684a5040249 Mon Sep 17 00:00:00 2001 From: "bzbarsky%mit.edu" Date: Tue, 12 Oct 2004 01:54:44 +0000 Subject: [PATCH] Don't allow SetSpec(EmptyCString()) on nsSimpleURI. Bug 263834, r+sr=darin git-svn-id: svn://10.0.0.236/trunk@163570 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/netwerk/base/src/nsSimpleURI.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/mozilla/netwerk/base/src/nsSimpleURI.cpp b/mozilla/netwerk/base/src/nsSimpleURI.cpp index c08d73dd147..2ec6361c406 100644 --- a/mozilla/netwerk/base/src/nsSimpleURI.cpp +++ b/mozilla/netwerk/base/src/nsSimpleURI.cpp @@ -147,12 +147,6 @@ nsSimpleURI::SetSpec(const nsACString &aSpec) } else specLen = flat.Length(); - if (specLen == 0) { - mScheme.Truncate(); - mPath.Truncate(); - return NS_OK; - } - // nsSimpleURI currently restricts the charset to US-ASCII nsCAutoString spec; NS_EscapeURL(specPtr, specLen, esc_OnlyNonASCII|esc_AlwaysCopy, spec);