mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 15:43:56 +00:00
committed by
Christian Helmuth
parent
c72ea84bcd
commit
cec2dd3b3f
@ -25,6 +25,7 @@
|
||||
#include <util/list.h>
|
||||
#include <util/string.h>
|
||||
#include <util/xml_node.h>
|
||||
#include <file_system/util.h>
|
||||
|
||||
/* local includes */
|
||||
#include <buffer.h>
|
||||
@ -47,9 +48,9 @@ static inline bool valid_filename(char const *str)
|
||||
if (str[0] == 0) return false;
|
||||
|
||||
/* must not contain '/' or '\' or ':' */
|
||||
if (string_contains(str, '/') ||
|
||||
string_contains(str, '\\') ||
|
||||
string_contains(str, ':'))
|
||||
if (File_system::string_contains(str, '/') ||
|
||||
File_system::string_contains(str, '\\') ||
|
||||
File_system::string_contains(str, ':'))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user