--- AE/Installer/trunk/source/main_window.cpp 2009/07/06 14:02:56 390 +++ AE/Installer/trunk/source/main_window.cpp 2009/07/06 14:44:10 392 @@ -58,6 +58,17 @@ using namespace std; #include "boost/date_time/date_parsing.hpp" #include "boost/date_time/posix_time/posix_time.hpp" +string escapePath(string input) { + + string output; + string escape_me = "& ;()|<>\"'\\#*?$"; + for(int i = 0; i < input.size(); i++) { + for(int j = 0; j < escape_me.size(); j++) if (input[i] == escape_me[j]) output += '//'; + output += input[i]; + } + return output; +} + int globalizeData(void) { busy = 1; @@ -338,7 +349,7 @@ int globalizeData(void) // or we could just include it in the zip in the proper place already. copy("../../persist.dat","../persist.dat"); - copy("../../keyconfig.txt","../keyconfig.txt"); + copy("../../keyconfig.txt","../keyconfig.txt"); #ifndef WIN32 /* On Mac only, set the current GDF to the AE GDF by writing to Oni's global preferences file (thankfully a standard OS X ".plist" XML file). If there are no Oni prefs (only possible if Oni has not been run even once), then the above line will fail silently, no harm done,