From a123157f8f69b6edf2d053970a73d6c4bcf1e890 Mon Sep 17 00:00:00 2001 From: kink Date: Thu, 1 Jul 2004 12:39:17 +0000 Subject: [PATCH] Remove wrong strip_tags and fix formatting in addressbook.php. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7718 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- ChangeLog | 1 + src/addressbook.php | 11 ++++------- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5a1f8eef..37b8cf29 100644 --- a/ChangeLog +++ b/ChangeLog @@ -65,6 +65,7 @@ Version 1.5.1 -- CVS of read_body.php discovered by Roman Medina. - Get alternating row colors of addressbook in sync with mailbox list. - Give proper error when PEAR DB not found. + - Remove inappropriate strip_tags() from add-to-addressbook (#968475). Version 1.5.0 -------------------- diff --git a/src/addressbook.php b/src/addressbook.php index 61eeeccd..294eab7f 100644 --- a/src/addressbook.php +++ b/src/addressbook.php @@ -162,14 +162,11 @@ if(sqgetGlobalVar('REQUEST_METHOD', $req_method, SQ_SERVER) && $req_method == 'P * Add new address * **************************************************/ if (isset($addaddr)) { - foreach( $addaddr as $k => $adr ) { - $addaddr[$k] = strip_tags( $adr ); + if (isset($backend)) { + $r = $abook->add($addaddr, $backend); + } else { + $r = $abook->add($addaddr, $abook->localbackend); } - if (isset($backend)) { - $r = $abook->add($addaddr, $backend); - } else { - $r = $abook->add($addaddr, $abook->localbackend); - } /* Handle error messages */ if (!$r) { -- 2.25.1