We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 705e082 commit bbc5720Copy full SHA for bbc5720
src/ReferenceContext.php
@@ -131,8 +131,8 @@ private function reduceDots($path)
131
//Confirm parent is valid
132
if(!empty($parts[$parent]) && $parts[$parent] !== '..'){
133
unset($parts[$parent]);
134
- unset($parts[$i]);
135
}
+ unset($parts[$i]);
136
137
138
return '/'.implode('/', $parts);
tests/ReferenceContextTest.php
@@ -179,6 +179,10 @@ public function normalizeUriProvider()
179
'/var/www/api/../definitions.yaml',
180
'file:///var/www/definitions.yaml',
181
],
182
+ [
183
+ '/./definitions.yaml',
184
+ 'file:///definitions.yaml',
185
+ ],
186
[
187
'/var/www/api/schema/../../definitions.yaml',
188
0 commit comments