summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-10-07 14:51:54 +0000
committerAndrew Tridgell <tridge@samba.org>2001-10-07 14:51:54 +0000
commitb15b39b77c23444203a24f18673650c5269eb73e (patch)
treeb1d91c27b849f56d4de4f762d71a07d7ccc00951 /source3
parent8ad2982968478d91c9f799808195baf818d4fdae (diff)
downloadsamba-b15b39b77c23444203a24f18673650c5269eb73e.tar.gz
samba-b15b39b77c23444203a24f18673650c5269eb73e.tar.xz
samba-b15b39b77c23444203a24f18673650c5269eb73e.zip
fixed lame valid table
(This used to be commit 67017619afed8fe10abd65d54538348d3ea92b9f)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/util_unistr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c
index 215a58669d6..1e73669e4ef 100644
--- a/source3/lib/util_unistr.c
+++ b/source3/lib/util_unistr.c
@@ -63,10 +63,10 @@ void load_case_tables(void)
}
if (!valid_table) {
+ const char *allowed = "!#$%&'()_-.@^`{}~";
DEBUG(1,("creating lame valid table\n"));
valid_table = malloc(0x10000);
- for (i=0;i<256;i++) valid_table[i] =
- isalnum(i) && !strchr("*\\/?<>|\":", i);
+ for (i=0;i<256;i++) valid_table[i] = isalnum(i) || strchr(allowed,i);
for (;i<0x10000;i++) valid_table[i] = 0;
}
}