Changeset 28088 in osm for applications/editors/josm/plugins/opendata/src
- Timestamp:
- 2012-03-15T13:59:12+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/opendata/src/org/openstreetmap/josm/plugins/opendata/core/io/NetworkReader.java
r28050 r28088 69 69 String cdisp = this.activeConnection.getHeaderField("Content-disposition"); 70 70 if (cdisp != null) { 71 Matcher m = Pattern.compile("attachment; 71 Matcher m = Pattern.compile("attachment;.?filename=(.*)").matcher(cdisp); 72 72 if (m.matches()) { 73 73 filename = m.group(1); … … 97 97 98 98 private Class<? extends AbstractReader> findReaderByExtension(String filename) { 99 filename = filename.replace("\"", ""); 99 100 if (filename.endsWith("."+XLS_EXT)) { 100 101 return XlsReader.class;
Note:
See TracChangeset
for help on using the changeset viewer.