mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 00:25:19 +02:00
Add mod security
Due to compatibility concerns, this is temporarily disabled.
This commit is contained in:
@@ -103,13 +103,17 @@ std::string RemoveLastPathComponent(const std::string &path,
|
||||
// this does not resolve symlinks and check for existence of directories.
|
||||
std::string RemoveRelativePathComponents(std::string path);
|
||||
|
||||
// Return the filename from a path or the entire path if no directory delimiter
|
||||
// is found.
|
||||
// Returns the absolute path for the passed path, with "." and ".." path
|
||||
// components and symlinks removed. Returns "" on error.
|
||||
std::string AbsolutePath(const std::string &path);
|
||||
|
||||
// Returns the filename from a path or the entire path if no directory
|
||||
// delimiter is found.
|
||||
const char *GetFilenameFromPath(const char *path);
|
||||
|
||||
bool safeWriteToFile(const std::string &path, const std::string &content);
|
||||
|
||||
}//fs
|
||||
} // namespace fs
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user