[SETUPLIB] Fix the class of characters valid for the installation directory

Commit 7c3f4c94a4 (r68307) mentions the valid characters:
these are:
ASCII alphanumericals (a-z, A-Z, 0-9)
(hence the iswalnum() -> isalnum() change),
and: '.', '\\', '-', '_' . Spaces are not accepted.

Addendum to commit 785cc21598.
This commit is contained in:
Hermès Bélusca-Maïto 2024-08-11 21:04:18 +02:00
parent 30ac80f36b
commit 259abe59dc
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 10 additions and 6 deletions

View file

@ -731,8 +731,7 @@ IsValidInstallDirectory(
if (!*p || (IS_PATH_SEPARATOR(*p) && !*(p + 1)))
return FALSE;
/* The path must contain only valid characters (alpha-numeric,
* '.', '\\', '-' and '_'). Spaces are not accepted. */
/* The path must contain only valid characters */
for (p = InstallDir; *p; ++p)
{
if (!IS_VALID_INSTALL_PATH_CHAR(*p))