mirror of
https://github.com/fluent/fluentd-ui.git
synced 2025-08-13 17:57:10 +02:00
Escape argument not to substitute unintended path (fix another again).
This commit is contained in:
parent
7f20ba640c
commit
fdcb704bec
@ -15,7 +15,7 @@ class Fluentd
|
|||||||
end
|
end
|
||||||
|
|
||||||
def file_id
|
def file_id
|
||||||
@file_id ||= with_file { name.gsub(/#{self.class::FILE_EXTENSION}\Z/,'') }
|
@file_id ||= with_file { name.gsub(/#{Regexp.escape(self.class::FILE_EXTENSION)}\Z/,'') }
|
||||||
end
|
end
|
||||||
|
|
||||||
def name
|
def name
|
||||||
|
Loading…
Reference in New Issue
Block a user