summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2013-01-16 07:57:18 -0500
committerJames Moger <james.moger@gitblit.com>2013-01-16 07:57:18 -0500
commit8c8f1f537b62a608e9ef01b70bec5a8df4dc8e8a (patch)
tree0c1cb5971d5768dcc01709b87335abcaee3128a5 /src
parentd4e9b0dad4edf1c493c1eead0456041df897541a (diff)
downloadgitblit-8c8f1f537b62a608e9ef01b70bec5a8df4dc8e8a.tar.gz
gitblit-8c8f1f537b62a608e9ef01b70bec5a8df4dc8e8a.zip
Escape metacharacters for settings updates
Diffstat (limited to 'src')
-rw-r--r--src/com/gitblit/FileSettings.java2
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("{", "\\{");
}
/**