Permalink
Browse files

looks like the special characters that are being substituted (!, & et…

…c) are no longer an issue
  • Loading branch information...
1 parent 7b5b4a0 commit c7048cc5cdaf8f1be2d71ac680bfeefd5af535bc @satb committed Jan 12, 2014
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/client.js
View
@@ -85,13 +85,9 @@ function encodeSpecialCharacters(filename, options) {
// some reason.
options = options || {}
if(options['no_encoding'] ){
- return filename.replace(/[!'()* ]/g, function (char) {
- return '%' + char.charCodeAt(0).toString(16);
- });
+ return filename;
}else{
- return encodeURI(filename).replace(/[!'()* ]/g, function (char) {
- return '%' + char.charCodeAt(0).toString(16);
- });
+ return encodeURI(filename);
}
}

0 comments on commit c7048cc

Please sign in to comment.