|
@@ -37,8 +37,6 @@ import java.net.URL;
|
37
|
37
|
import java.util.ArrayList;
|
38
|
38
|
import java.util.Date;
|
39
|
39
|
import java.util.List;
|
40
|
|
-import java.util.regex.Matcher;
|
41
|
|
-import java.util.regex.Pattern;
|
42
|
40
|
|
43
|
41
|
/** Handles URLs. */
|
44
|
42
|
public class URLHandler {
|
|
@@ -208,15 +206,15 @@ public class URLHandler {
|
208
|
206
|
}
|
209
|
207
|
}
|
210
|
208
|
|
211
|
|
- newCommand = newCommand.replaceAll("\\$url", Matcher.quoteReplacement(url.toString()));
|
212
|
|
- newCommand = newCommand.replaceAll("\\$fragment", Matcher.quoteReplacement(fragment));
|
213
|
|
- newCommand = newCommand.replaceAll("\\$host", Matcher.quoteReplacement(host));
|
214
|
|
- newCommand = newCommand.replaceAll("\\$path", Matcher.quoteReplacement(path));
|
215
|
|
- newCommand = newCommand.replaceAll("\\$port", Matcher.quoteReplacement(port));
|
216
|
|
- newCommand = newCommand.replaceAll("\\$query", Matcher.quoteReplacement(query));
|
217
|
|
- newCommand = newCommand.replaceAll("\\$protocol", Matcher.quoteReplacement(protocol));
|
218
|
|
- newCommand = newCommand.replaceAll("\\$username", Matcher.quoteReplacement(username));
|
219
|
|
- newCommand = newCommand.replaceAll("\\$password", Matcher.quoteReplacement(password));
|
|
209
|
+ newCommand = newCommand.replace("$url", url.toString());
|
|
210
|
+ newCommand = newCommand.replace("$fragment", fragment);
|
|
211
|
+ newCommand = newCommand.replace("$host", host);
|
|
212
|
+ newCommand = newCommand.replace("$path", path);
|
|
213
|
+ newCommand = newCommand.replace("$port", port);
|
|
214
|
+ newCommand = newCommand.replace("$query", query);
|
|
215
|
+ newCommand = newCommand.replace("$protocol", protocol);
|
|
216
|
+ newCommand = newCommand.replace("$username", username);
|
|
217
|
+ newCommand = newCommand.replace("$password", password);
|
220
|
218
|
|
221
|
219
|
return newCommand;
|
222
|
220
|
}
|