mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-27 00:09:13 +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 (str_replace('=0D=0A',"\n",$string));
|
||||||
}
|
}
|
||||||
return $out;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function encode($string, $type='qp')
|
function encode($string, $type='qp')
|
||||||
@ -174,8 +173,8 @@
|
|||||||
switch($type)
|
switch($type)
|
||||||
{
|
{
|
||||||
case 'qp':
|
case 'qp':
|
||||||
$out = ereg_replace("\r\n",'=0D=0A',$string);
|
$out = str_replace("\r\n",'=0D=0A',$string);
|
||||||
$out = ereg_replace("\n",'=0D=0A',$out);
|
$out = str_replace("\n",'=0D=0A',$out);
|
||||||
break;
|
break;
|
||||||
case 'base64':
|
case 'base64':
|
||||||
$out = base64_encode($string);
|
$out = base64_encode($string);
|
||||||
|
Loading…
Reference in New Issue
Block a user