mirror of
https://github.com/boostorg/url.git
synced 2026-02-21 15:32:13 +00:00
dont count slash in seg iter decrement
This commit is contained in:
@@ -50,6 +50,9 @@ segments_iter_impl(
|
||||
, pos(pos_)
|
||||
, index(index_)
|
||||
{
|
||||
if(index == 0)
|
||||
pos = path_prefix(ref.string());
|
||||
update();
|
||||
}
|
||||
|
||||
void
|
||||
@@ -142,7 +145,10 @@ decrement() noexcept
|
||||
{
|
||||
--p;
|
||||
if(*p == '/')
|
||||
{
|
||||
++dn;
|
||||
break;
|
||||
}
|
||||
if(*p == '%')
|
||||
dn += 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user