diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-10-07 14:51:54 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-10-07 14:51:54 +0000 |
commit | b15b39b77c23444203a24f18673650c5269eb73e (patch) | |
tree | b1d91c27b849f56d4de4f762d71a07d7ccc00951 | |
parent | 8ad2982968478d91c9f799808195baf818d4fdae (diff) | |
download | samba-b15b39b77c23444203a24f18673650c5269eb73e.tar.gz samba-b15b39b77c23444203a24f18673650c5269eb73e.tar.bz2 samba-b15b39b77c23444203a24f18673650c5269eb73e.zip |
fixed lame valid table
(This used to be commit 67017619afed8fe10abd65d54538348d3ea92b9f)
-rw-r--r-- | source3/lib/util_unistr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_unistr.c b/source3/lib/util_unistr.c index 215a58669d..1e73669e4e 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; } } |