mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-30 17:50:00 -06:00
Patch log service
This commit is contained in:
@@ -426,6 +426,8 @@ class LogService extends BaseService {
|
||||
}
|
||||
|
||||
get_log_file (name) {
|
||||
// sanitize name: cannot contain path characters
|
||||
name = name.replace(/[^a-zA-Z0-9-_]/g, '_');
|
||||
return this.modules.path.join(this.log_directory, name);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user