mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-27 18:27:05 +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;
|
return true;
|
||||||
#else
|
#else
|
||||||
|
|
||||||
// NuttX: simple string-based check. Original behavior, unchanged.
|
// NuttX: simple string-based check. Original behavior, unchanged.
|
||||||
if (strncmp(path, CONFIG_BOARD_ROOT_PATH "/", strlen(CONFIG_BOARD_ROOT_PATH "/")) != 0
|
if (strncmp(path, CONFIG_BOARD_ROOT_PATH "/", strlen(CONFIG_BOARD_ROOT_PATH "/")) != 0
|
||||||
|| strstr(path, "/../") != nullptr) {
|
|| strstr(path, "/../") != nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user