P3D4::Can't add server repository with ".." in the path

Issue #300 resolved
Sergey Leshchenko
created an issue

For example: ssh://user@webserver/../../path/

is replaced to

ssh://user@webserver/path/

Comments (4)

  1. Jason Harris

    The following fixes this. And has been committed to the MacHg sources and will appear in the next version.

    Classes/ExternalClasses/NSURL+Parameters/NSURL+Parameters.m
    @@ -76,7 +76,7 @@include
             [string appendString:ESCAPE_STRING(query)];
         }
         
    -    return [[NSURL URLWithString:string] standardizedURL];
    +    return [NSURL URLWithString:string];
     }
     
     - (NSString*) passwordByReplacingPercentEscapes
    

    Thanks for the report!

  2. Log in to comment