Changeset 20566 in osm


Ignore:
Timestamp:
2010-03-20T21:08:01+01:00 (14 years ago)
Author:
bastik
Message:

'filter control characters that are send to the consol and create morse code effect'

Location:
applications/editors/josm/plugins/wmsplugin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/wmsplugin/build.xml

    r19415 r20566  
    2828
    2929
    30         <property name="commit.message" value="Uses new constructor for plugin" />
     30        <property name="commit.message" value="filter control characters that are send to the consol and create morse code effect" />
    3131        <property name="plugin.main.version" value="2830" />
    3232
  • applications/editors/josm/plugins/wmsplugin/src/wmsplugin/WMSGrabber.java

    r19417 r20566  
    210210        String line = null;
    211211        while( (line = br.readLine()) != null) {
    212             exception.append(line);
     212            // filter non-ASCII characters and control characters
     213            exception.append(line.replaceAll("[^\\p{Print}]", ""));
    213214            exception.append('\n');
    214215        }
Note: See TracChangeset for help on using the changeset viewer.