projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix address parasitic indentation in vcards
[platal.git]
/
modules
/
profile.php
diff --git
a/modules/profile.php
b/modules/profile.php
index
14f2250
..
6e8479f
100644
(file)
--- a/
modules/profile.php
+++ b/
modules/profile.php
@@
-646,10
+646,11
@@
class ProfileModule extends PLModule
{
// $adr1, $adr2, $adr3, $postcode, $city, $region, $country
extract($params['adr']);
{
// $adr1, $adr2, $adr3, $postcode, $city, $region, $country
extract($params['adr']);
- $adr =
$adr1
;
+ $adr =
trim($adr1)
;
$adr = trim("$adr\n$adr2");
$adr = trim("$adr\n$adr3");
$adr = trim("$adr\n$adr2");
$adr = trim("$adr\n$adr3");
- return quoted_printable_encode(";;$adr;$city;$region;$postcode;$country");
+ $adr = explode("\n", quoted_printable_encode(";;$adr;$city;$region;$postcode;$country"));
+ return implode("\n", array_map('trim', $adr));
}
function handler_vcard(&$page, $x = null)
}
function handler_vcard(&$page, $x = null)