Skip to content

Commit f18de70

Browse files
save file
1 parent 483240d commit f18de70

File tree

1 file changed

+5
-0
lines changed
  • blog/26-02-05/request-url-to-absolute-filename/ex

1 file changed

+5
-0
lines changed

blog/26-02-05/request-url-to-absolute-filename/ex/resolve.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
return {error};
2828
}
2929

30+
if(url.indexOf('\\')!=-1){
31+
var error = 'invalid url ( backslash )';
32+
return {error};
33+
}
34+
3035
url = url.slice(1);
3136
resolve.df && console.log('url :',url);
3237
var root = path.resolve(docroot);

0 commit comments

Comments
 (0)