1
0
Fork 0

fgValidatePath: Typo fix allowing the animated jetways to save files again.

The typo was introduced in 7e607b8403 from July
2016.  The result was a series of alert messages such as:

savexml: writing to 'Path "/flightgear/home/.fgfs/runtime-jetways/0.xml"' denied
(unauthorized directory - authorization no longer follows symlinks)
This commit is contained in:
Edward d'Auvergne 2018-04-13 09:08:07 +02:00
parent 22cf6bd5e4
commit 667cd86656

View file

@ -118,7 +118,7 @@ void fgInitAllowedPaths()
write_allowed_paths.push_back(fg_home + "/state/*.xml");
write_allowed_paths.push_back(fg_home + "/aircraft-data/*.xml");
write_allowed_paths.push_back(fg_home + "/Wildfire/*.xml");
write_allowed_paths.push_back(fg_home + "/runtime-jetway/*.xml");
write_allowed_paths.push_back(fg_home + "/runtime-jetways/*.xml");
write_allowed_paths.push_back(fg_home + "/Input/Joysticks/*.xml");
// Check that it works