Removed white-space from the possible characters in the randomly generated strings.

Signed-off-by: Gergely Polonkai (W00d5t0ck) <polesz@w00d5t0ck.info>
This commit is contained in:
Gergely Polonkai (W00d5t0ck) 2012-03-29 18:08:52 +02:00
parent bc3eab6b28
commit b3f81cfb94

View File

@ -69,8 +69,9 @@ wmud_random_string(gint len)
{
gchar c = 0;
/* Include only printable characters, but exclude $ because of
* salt generation */
while (!g_ascii_isprint(c) || (c == '$'))
* salt generation, and space to avoid misunderstanding in the
* random generated passwords */
while (!g_ascii_isprint(c) || (c == '$') || (c == ' ') || (c == '\t'))
c = random_number(1, 127);
ret[i] = c;