From 2290ae0239af5d408226dbad137d524d301fc1c7 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 17 May 2026 10:42:22 +0500 Subject: [PATCH] public: disable Amiga's double-slash check in CheckNastyPath --- public/crtlib.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/crtlib.c b/public/crtlib.c index 41359f2b..996d01d0 100644 --- a/public/crtlib.c +++ b/public/crtlib.c @@ -686,8 +686,10 @@ int COM_CheckNastyPath( const char *path ) // Amiga and Windows: : tries to go to root of drive if( Q_strchr( path, ':' )) return 1; // non-portable attempt to go to root of drive +#if 0 // Amiga: // is parent directory if( Q_strstr( path, "//")) return 1; // non-portable attempt to go to parent directory +#endif // all: don't allow going to parent directory (../ or /../) if( Q_strstr( path, "..")) return 2; // attempt to go outside the game directory