johnno1962 / injectionforxcode

Runtime Code Injection for Objective-C & Swift
MIT License
6.55k stars 565 forks source link

file path when contains '&' it can't tell #82

Closed lacklock closed 8 years ago

lacklock commented 8 years ago

i have some api.swift under "Login&RegisterApi" folder

it can't find the files under this folder

so i only have to change the folder name

johnno1962 commented 8 years ago

You could try adding & to the list of escaped characters in the script injectSource.pl, line 210:

    (my $escaped = $selectedFile) =~ s/([‘& ])/\\$1/g;

At the moment it only support embedded space and '

johnno1962 commented 8 years ago

Unfortunately it’s not as easy as this for some reason. It’s going to be easier if you rename the directory :(

lacklock commented 8 years ago

thanks any way