urlencode password to cope with url special chars like forward slash or @ in passwords

This commit is contained in:
Ralf Becker 2013-06-03 19:32:26 +00:00
parent 73cba1f328
commit 7e8db9b2fe

View File

@ -199,7 +199,7 @@ class vfs_stream_wrapper implements iface_stream_wrapper
{
$defaults = array(
'user' => $GLOBALS['egw_info']['user']['account_lid'],
'pass' => $GLOBALS['egw_info']['user']['passwd'],
'pass' => urlencode($GLOBALS['egw_info']['user']['passwd']),
'host' => $GLOBALS['egw_info']['user']['domain'],
'home' => str_replace(array('\\\\','\\'),array('','/'),$GLOBALS['egw_info']['user']['homedirectory']),
);