summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Moger <james.moger@gitblit.com>2014-06-27 15:05:06 -0400
committerJames Moger <james.moger@gitblit.com>2014-06-27 15:05:06 -0400
commit5b41f21c57274c4f2e58b78dcb8666d0b37dc6d2 (patch)
tree4777e8104c0af2911766f631746b6460a2b9092c
parent0fd37157bc4a556407a54d466725fd33124993ba (diff)
parent5d41d9b88dfaab211ac58762d76461a88699e793 (diff)
downloadgitblit-5b41f21c57274c4f2e58b78dcb8666d0b37dc6d2.tar.gz
gitblit-5b41f21c57274c4f2e58b78dcb8666d0b37dc6d2.zip
Merge branch 'ticket/115' into develop
-rw-r--r--src/main/java/com/gitblit/tickets/TicketIndexer.java2
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 + "\"";
}
}