| # | Line 58 | Line 58 | using namespace std; | |
|---|---|---|
| 58 | #include "boost/date_time/date_parsing.hpp" | |
| 59 | #include "boost/date_time/posix_time/posix_time.hpp" | |
| 60 | ||
| 61 | + | string escapePath(string input) { |
| 62 | + | |
| 63 | + | string output; |
| 64 | + | string escape_me = "& ;()|<>\"'\\#*?$"; |
| 65 | + | for(int i = 0; i < input.size(); i++) { |
| 66 | + | for(int j = 0; j < escape_me.size(); j++) if (input[i] == escape_me[j]) output += '//'; |
| 67 | + | output += input[i]; |
| 68 | + | } |
| 69 | + | return output; |
| 70 | + | } |
| 71 | + | |
| 72 | int globalizeData(void) | |
| 73 | { | |
| 74 | busy = 1; | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines (old) |
| > | Changed lines (new) |