MCPcopy Create free account
hub / github.com/arkdb/inception / check_valid_path

Function check_valid_path

sql/sql_plugin.cc:320–324  ·  view source on GitHub ↗

Check if the provided path is valid in the sense that it does cause a relative reference outside the directory. @note Currently, this function only check if there are any characters in FN_DIRSEP in the string, but it might change in the future. @code check_valid_path("../foo.so") -> true check_valid_path("foo.so") -> false @endcode */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

plugin_dl_addFunction · 0.85
udf_initFunction · 0.85
mysql_create_functionFunction · 0.85

Calls 1

my_strcspnFunction · 0.85

Tested by

no test coverage detected