allow most UTF-8 characters in options
This commit is contained in:
parent
8f018e1e3e
commit
1098494819
|
@ -1,5 +1,7 @@
|
||||||
0.3.2+
|
0.3.2+
|
||||||
|
update ru.po
|
||||||
|
no quote cifs password
|
||||||
|
allow most UTF-8 characters in options
|
||||||
0.3.2 2012-08-15:
|
0.3.2 2012-08-15:
|
||||||
accept smb workgroup/user
|
accept smb workgroup/user
|
||||||
curlftpfs pass user:pass as option
|
curlftpfs pass user:pass as option
|
||||||
|
|
|
@ -3474,12 +3474,11 @@ _get_type:
|
||||||
}
|
}
|
||||||
|
|
||||||
// test options
|
// test options
|
||||||
if ( ( i = strspn( options,
|
if ( ( str2 = g_utf8_strchr( options, -1, '\\' ) ) ||
|
||||||
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-=+_,.:;\"'$@/" ) )
|
( str2 = g_utf8_strchr( options, -1, ' ' ) ) )
|
||||||
!= strlen( options ) )
|
|
||||||
{
|
{
|
||||||
str = g_strdup_printf( _("udevil: error 89: options contain an invalid character ('%c')\n"),
|
str = g_strdup_printf( _("udevil: error 89: options contain an invalid character ('%c')\n"),
|
||||||
options[i] );
|
str2[0] );
|
||||||
wlog( str, NULL, 2 );
|
wlog( str, NULL, 2 );
|
||||||
g_free( str );
|
g_free( str );
|
||||||
ret = 1;
|
ret = 1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user