mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-28 23:09:59 +02:00
kwallet: fix password search for password with either a realm or authtype
even without an authtype the "?" widlcard was always added to search making kwallet return no password for that query
This commit is contained in:
parent
daf45fefc3
commit
862c4a2d9d
@ -159,10 +159,9 @@ values2key( const char* const* ppsz_values, bool b_search )
|
|||||||
vlc_memstream_printf( &ms, "*" );
|
vlc_memstream_printf( &ms, "*" );
|
||||||
|
|
||||||
/* Realm and authtype section */
|
/* Realm and authtype section */
|
||||||
if ( ppsz_values[KEY_REALM] || ppsz_values[KEY_AUTHTYPE] || b_search )
|
if ( ppsz_values[KEY_REALM] || ppsz_values[KEY_AUTHTYPE] )
|
||||||
{
|
{
|
||||||
vlc_memstream_printf( &ms, "?" );
|
vlc_memstream_printf( &ms, "\?" );
|
||||||
|
|
||||||
/* Realm section */
|
/* Realm section */
|
||||||
if ( ppsz_values[KEY_REALM] || b_search )
|
if ( ppsz_values[KEY_REALM] || b_search )
|
||||||
{
|
{
|
||||||
@ -198,6 +197,8 @@ values2key( const char* const* ppsz_values, bool b_search )
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
else if ( b_search )
|
||||||
|
vlc_memstream_printf( &ms, "*" );
|
||||||
|
|
||||||
b_state = true;
|
b_state = true;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user