From 4b75ac58aa9baaf611df8ef694fd585529823c66 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sun, 30 Dec 2007 19:04:48 +0000 Subject: fix to rfc normalization It kept prepending a '/' to the trailing segment even if the segment was past [?#] Signed-off-by: Michael Krelin --- diff --git a/lib/util.cc b/lib/util.cc index ee75d29..a9b9bed 100644 --- a/lib/util.cc +++ b/lib/util.cc @@ -305,7 +305,8 @@ namespace opkele { } } if(!pseg.empty()) { - rv += '/'; rv += pseg; + if(!qf) rv += '/'; + rv += pseg; } return rv; } -- cgit v0.9.0.2