mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-11 08:07:24 -05:00
* Fixing issue #353 Moved replaceIllegalCharacters method into StringUtils. Modified classes that write out to disk to call this method when saving a file. * Implementing suggested changes from comments in PR #448
This commit is contained in:
@@ -41,6 +41,7 @@ import io.github.dsheirer.source.SourceException;
|
||||
import io.github.dsheirer.source.SourceManager;
|
||||
import io.github.dsheirer.source.SourceType;
|
||||
import io.github.dsheirer.source.config.SourceConfigTuner;
|
||||
import io.github.dsheirer.util.StringUtils;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@@ -286,7 +287,8 @@ public class ChannelProcessingManager implements ChannelEventListener
|
||||
channel.getDecodeConfiguration().getDecoderType()));
|
||||
|
||||
/* Setup event logging */
|
||||
List<Module> loggers = mEventLogManager.getLoggers(channel.getEventLogConfiguration(), channel.getName());
|
||||
String cleanedChannelName = StringUtils.replaceIllegalCharacters(channel.getName());
|
||||
List<Module> loggers = mEventLogManager.getLoggers(channel.getEventLogConfiguration(), cleanedChannelName);
|
||||
|
||||
if(!loggers.isEmpty())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user