Skip to content

Commit

Permalink
Replace slashes with underscores in log filenames
Browse files Browse the repository at this point in the history
  • Loading branch information
hinrik committed Apr 29, 2009
1 parent 03ac76e commit 527989e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Changes
Expand Up @@ -10,6 +10,8 @@ Revision history for Perl extension POE::Component::IRC.
synced (Hinrik)
- In jailed environments we can't assume that 127.0.0.1 will be that.
reported by Jase Thew (Bazerka).
- Logger.pm: Replace slashes with underscores before logging to disk,
spotted by Sebastian Mair.

6.05_01 Sat Apr 11 09:18:28 GMT 2009
- Compat.pm: Don't emit an extra event or print a misleading debug message
Expand Down
3 changes: 3 additions & 0 deletions lib/POE/Component/IRC/Plugin/Logger.pm
Expand Up @@ -375,6 +375,9 @@ sub _log_entry {
}

return if !defined $self->{Format}->{$type};

# slash is problematic in a filename, replace it with underscore
$context =~ s!/!_!g;

my $log_file;
if ($self->{Sort_by_date}) {
Expand Down

0 comments on commit 527989e

Please sign in to comment.