mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:19:06 +01:00
minor change to encode/decode
This commit is contained in:
parent
82ed6bc041
commit
136f437912
@ -165,7 +165,6 @@
|
||||
{
|
||||
return (str_replace('=0D=0A',"\n",$string));
|
||||
}
|
||||
return $out;
|
||||
}
|
||||
|
||||
function encode($string, $type='qp')
|
||||
@ -174,8 +173,8 @@
|
||||
switch($type)
|
||||
{
|
||||
case 'qp':
|
||||
$out = ereg_replace("\r\n",'=0D=0A',$string);
|
||||
$out = ereg_replace("\n",'=0D=0A',$out);
|
||||
$out = str_replace("\r\n",'=0D=0A',$string);
|
||||
$out = str_replace("\n",'=0D=0A',$out);
|
||||
break;
|
||||
case 'base64':
|
||||
$out = base64_encode($string);
|
||||
|
Loading…
Reference in New Issue
Block a user