Skip to content

Commit

Permalink
Remove hack chars
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Jul 28, 2016
1 parent 51d349f commit e4ee907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/http.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,15 +197,15 @@ export default class {
while(i < length){
chr = pathname[i++];
if(chr === '/' || chr === '\\'){
if(value && value[0] !== '.'){
if(value && decodeURIComponent(value)[0] !== '.'){
result.push(value);
}
value = '';
}else{
value += chr;
}
}
if(value && value[0] !== '.'){
if(value && decodeURIComponent(value) !== '.'){
result.push(value);
}
return result.join('/');
Expand Down

0 comments on commit e4ee907

Please sign in to comment.