Fixed bug where e-mail address contains ' character
authoritsbruce <itsbruce@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Jul 2002 01:41:12 +0000 (01:41 +0000)
committeritsbruce <itsbruce@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Wed, 31 Jul 2002 01:41:12 +0000 (01:41 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@3192 7612ce4b-ef26-0410-bec9-ea0150e637f0

src/addrbook_search.php

index 8ee86b0c8a5c8f19825f31be44313507dcbc920f..5fe1045a5ca2c4ec6011b51efb8599cab95e09f0 100644 (file)
@@ -108,7 +108,7 @@ function display_result($res, $includesource = true) {
     
     while (list($undef, $row) = each($res)) {
         $tr_bgcolor = '';
-        $email = AddressBook::full_address($row);
+        $email = addslashes(AddressBook::full_address($row));
         if ($line % 2) { $tr_bgcolor = $color[0]; }
         echo html_tag( 'tr', '', '', $tr_bgcolor, 'nowrap' ) .
         html_tag( 'td',