]> source.dussan.org Git - gitblit.git/commitdiff
Escape metacharacters for settings updates
authorJames Moger <james.moger@gitblit.com>
Wed, 16 Jan 2013 12:57:18 +0000 (07:57 -0500)
committerJames Moger <james.moger@gitblit.com>
Wed, 16 Jan 2013 12:57:18 +0000 (07:57 -0500)
src/com/gitblit/FileSettings.java

index be1f44f2c5f486111957cd52ccbc83b94a993b87..3a42cad034c123b61643cdd361afa19a7f101523 100644 (file)
@@ -104,7 +104,7 @@ public class FileSettings extends IStoredSettings {
        }\r
        \r
        private String regExEscape(String input) {\r
-               return input.replace(".", "\\.");\r
+               return input.replace(".", "\\.").replace("$", "\\$").replace("{", "\\{");\r
        }\r
 \r
        /**\r