James Moger
2011-06-18 5450d08e4cd11176bcc50a5b3d001d291bd8982c
src/com/gitblit/IStoredSettings.java
@@ -35,15 +35,19 @@
   protected abstract Properties read();
   public List<String> getAllKeys(String startingWith) {
      startingWith = startingWith.toLowerCase();
      List<String> keys = new ArrayList<String>();
      Properties props = read();
      if (StringUtils.isEmpty(startingWith)) {
         keys.addAll(props.stringPropertyNames());
      } else {
         startingWith = startingWith.toLowerCase();
      for (Object o : props.keySet()) {
         String key = o.toString();
         if (key.toLowerCase().startsWith(startingWith)) {
            keys.add(key);
         }
      }
      }
      return keys;
   }