Diff between 28429dcd1eef25e445ea9d9d67dbf171808a9ce1 and 1d7c6a807d1d81e43110bae466f8e34cbffb088c

Changed Files

File Additions Deletions Status
tools/bluetooth-player.c +5 -0 modified

Full Patch

diff --git a/tools/bluetooth-player.c b/tools/bluetooth-player.c
index 2afdd17..f10d9be 100644
--- a/tools/bluetooth-player.c
+++ b/tools/bluetooth-player.c
@@ -738,6 +738,11 @@ static void cmd_change_folder(int argc, char *argv[])
 		return;
 	}
 
+	if (dbus_validate_path(argv[1], NULL) == FALSE) {
+		rl_printf("Not a valid path\n");
+		return;
+	}
+
 	if (check_default_player() == FALSE)
 		return;