Browse Source

Fixed bug where e-mail address contains ' character

itsbruce 23 years ago
parent
commit
4fb6a3028c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/addrbook_search.php

+ 1 - 1
src/addrbook_search.php

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