* use String.replaceAll() rather than String.replaceFirst() to sanitize log names.
This commit is contained in:
parent
29cebb79a9
commit
48bd6d055b
1 changed files with 1 additions and 1 deletions
|
@ -64,7 +64,7 @@ public class Logging extends LogFactory {
|
|||
throw new LogConfigurationException("No logname specified!");
|
||||
}
|
||||
// normalize log name
|
||||
logname = logname.replaceFirst("[^\\w\\d\\.]", "");
|
||||
logname = logname.replaceAll("[^\\w\\d\\.]", "");
|
||||
if ("console".equals(logdir)) {
|
||||
if (logname.startsWith("org.mortbay."))
|
||||
return getConsoleLog().getSedatedLog();
|
||||
|
|
Loading…
Add table
Reference in a new issue