diff options
author | James Moger <james.moger@gitblit.com> | 2014-06-27 14:59:34 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2014-06-27 14:59:34 -0400 |
commit | 5d41d9b88dfaab211ac58762d76461a88699e793 (patch) | |
tree | 08bc7a56e95543334b519a4a19e2be553bb2ba46 /src/main/java/com/gitblit | |
parent | be722e7555aff66db450a49898bceab7dfd71976 (diff) | |
download | gitblit-5d41d9b88dfaab211ac58762d76461a88699e793.tar.gz gitblit-5d41d9b88dfaab211ac58762d76461a88699e793.zip |
Escape Lucene query values with hyphens
Diffstat (limited to 'src/main/java/com/gitblit')
-rw-r--r-- | src/main/java/com/gitblit/tickets/TicketIndexer.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/gitblit/tickets/TicketIndexer.java b/src/main/java/com/gitblit/tickets/TicketIndexer.java index 3929a000..98fe6977 100644 --- a/src/main/java/com/gitblit/tickets/TicketIndexer.java +++ b/src/main/java/com/gitblit/tickets/TicketIndexer.java @@ -143,7 +143,7 @@ public class TicketIndexer { private String escape(String value) { if (value.charAt(0) != '"') { - if (value.indexOf('/') > -1) { + if (value.indexOf('/') > -1 || value.indexOf('-') > -1) { return "\"" + value + "\""; } } |