mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-09 22:08:56 +08:00
style(mavlink): fix astyle formatting in FTP path validation
EKF Update Change Indicator / unit_tests (push) Has been cancelled
EKF Update Change Indicator / unit_tests (push) Has been cancelled
Signed-off-by: Ramon Roche <mrpollo@gmail.com>
This commit is contained in:
@@ -1250,6 +1250,7 @@ bool MavlinkFTP::_validatePathIsWritable(const char *path)
|
||||
|
||||
return true;
|
||||
#else
|
||||
|
||||
// NuttX: simple string-based check. Original behavior, unchanged.
|
||||
if (strncmp(path, CONFIG_BOARD_ROOT_PATH "/", strlen(CONFIG_BOARD_ROOT_PATH "/")) != 0
|
||||
|| strstr(path, "/../") != nullptr) {
|
||||
|
||||
Reference in New Issue
Block a user