Ticket #19436: 19436.1.patch

File 19436.1.patch, 655 bytes (added by taylor.smock, 13 months ago)

Prepend / to commands, if it doesn't exist

  • src/org/openstreetmap/josm/io/remotecontrol/RequestProcessor.java

     
    419419     */
    420420    public static JsonObject getHandlerInfoAsJSON(String cmd) {
    421421        RequestHandler handler;
     422        if (!cmd.startsWith("/")) {
     423            cmd = new StringBuilder("/").append(cmd).toString();
     424        }
    422425        try {
    423426            Class<?> c = handlers.get(cmd);
    424427            if (c == null) return null;