Changeset 14893 in osm for applications/editors/josm/plugins/remotecontrol/src
- Timestamp:
- 2009-05-04T11:17:13+02:00 (15 years ago)
- Location:
- applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RemoteControlPreferences.java
r13497 r14893 53 53 } 54 54 55 public booleanok() {55 public void ok() { 56 56 Main.pref.put("remotecontrol.permission.load-data", permissionLoadData.isSelected()); 57 57 Main.pref.put("remotecontrol.permission.change-selection", permissionChangeSelection.isSelected()); 58 58 Main.pref.put("remotecontrol.permission.change-viewport", permissionChangeViewport.isSelected()); 59 59 Main.pref.put("remotecontrol.always-confirm", alwaysAskUserConfirm.isSelected()); 60 return false;61 60 } 62 61 } -
applications/editors/josm/plugins/remotecontrol/src/org/openstreetmap/josm/plugins/remotecontrol/RequestProcessor.java
r13497 r14893 75 75 76 76 StringBuffer requestLine = new StringBuffer(); 77 while ( true)77 while (requestLine.length() < 1024) 78 78 { 79 79 int c = in.read(); … … 85 85 String get = requestLine.toString(); 86 86 StringTokenizer st = new StringTokenizer(get); 87 if (!st.hasMoreTokens()) { sendError(out); return; } 87 88 String method = st.nextToken(); 89 if (!st.hasMoreTokens()) { sendError(out); return; } 88 90 String url = st.nextToken(); 89 91 90 if (!method.equals("GET")) {92 if (!method.equals("GET")) { 91 93 sendNotImplemented(out); 92 94 return;
Note:
See TracChangeset
for help on using the changeset viewer.