diff options
author | James Moger <james.moger@gitblit.com> | 2013-01-16 07:57:18 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2013-01-16 07:57:18 -0500 |
commit | 8c8f1f537b62a608e9ef01b70bec5a8df4dc8e8a (patch) | |
tree | 0c1cb5971d5768dcc01709b87335abcaee3128a5 /src | |
parent | d4e9b0dad4edf1c493c1eead0456041df897541a (diff) | |
download | gitblit-8c8f1f537b62a608e9ef01b70bec5a8df4dc8e8a.tar.gz gitblit-8c8f1f537b62a608e9ef01b70bec5a8df4dc8e8a.zip |
Escape metacharacters for settings updates
Diffstat (limited to 'src')
-rw-r--r-- | src/com/gitblit/FileSettings.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/gitblit/FileSettings.java b/src/com/gitblit/FileSettings.java index be1f44f2..3a42cad0 100644 --- a/src/com/gitblit/FileSettings.java +++ b/src/com/gitblit/FileSettings.java @@ -104,7 +104,7 @@ public class FileSettings extends IStoredSettings { }
private String regExEscape(String input) {
- return input.replace(".", "\\.");
+ return input.replace(".", "\\.").replace("$", "\\$").replace("{", "\\{");
}
/**
|