From 6662ba5006c57bc3d1ea3c064d24cb94963292bc Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Fri, 16 Nov 2012 20:34:32 +0100 Subject: [PATCH] Access checker: properly convert paths to the norm. The same was already done for fg-root and fg-home paths - it was only missing for fg-scenery and fg-aircraft paths. --- Nasal/io.nas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Nasal/io.nas b/Nasal/io.nas index fbf1e358f..81ae06dd3 100644 --- a/Nasal/io.nas +++ b/Nasal/io.nas @@ -269,7 +269,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func { var p = substr(pattern, 13); var sim = props.globals.getNode("/sim"); foreach (var c; sim.getChildren("fg-aircraft")) { - pattern = c.getValue() ~ "/" ~ p; + pattern = string.normpath(c.getValue()) ~ "/" ~ p; append(rules, [pattern, allow]); printlog("info", "IORules: appending ", pattern); } @@ -277,7 +277,7 @@ _setlistener("/sim/signals/nasal-dir-initialized", func { var p = substr(pattern, 12); var sim = props.globals.getNode("/sim"); foreach (var c; sim.getChildren("fg-scenery")) { - pattern = c.getValue() ~ "/" ~ p; + pattern = string.normpath(c.getValue()) ~ "/" ~ p; append(rules, [pattern, allow]); printlog("info", "IORules: appending ", pattern); }