Changeset 12487

Show
Ignore:
Timestamp:
09/07/11 07:36:07 (2 years ago)
Author:
mbrevda
Message:

re #5355 - merge to 2.9

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/phonebook/module.xml

    r11922 r12487  
    33  <repo>extended</repo> 
    44  <name>Phonebook</name> 
    5   <version>2.9.0.2</version> 
     5  <version>2.9.0.3</version> 
    66  <publisher>FreePBX</publisher> 
    77  <license>GPLv2+</license> 
     
    1515  <md5sum>cac34ab94378d9817a1d666a4e8ed964</md5sum> 
    1616  <changelog> 
     17    *2.9.0.3* #5355 
    1718    *2.9.0.2* spelling, localizations 
    1819    *2.9.0.1* set reposoitory 
  • modules/branches/2.9/phonebook/page.phonebook.php

    r11788 r12487  
    5454            $fields = phonebook_fgetcsvfromline($line, 3); 
    5555            $fields = array_map('trim', $fields); 
    56             if (is_array($fields) && count($fields) == 3 && is_numeric($fields[2]) &&  ($fields[3] == '' || is_numeric($fields[3]))) { 
     56            if (is_array($fields) && count($fields) == 3  
     57              && is_numeric($fields[2])  
     58              &&  ($fields[3] == '' || is_numeric($fields[3])) 
     59            ) { 
    5760              phonebook_del($fields[2], $numbers[$fields[2]]['speeddial']); 
    58               phonebook_add(htmlentities($fields[2],ENT_QUOTES), addslashes(htmlentities($fields[1],ENT_QUOTES)), htmlentities($fields[3],ENT_QUOTES)); 
     61              phonebook_add(htmlentities($fields[2],ENT_QUOTES, 'UTF-8'), 
     62                      addslashes(htmlentities($fields[1],ENT_QUOTES, 'UTF-8')), 
     63                      htmlentities($fields[3],ENT_QUOTES, 'UTF-8')); 
    5964              $i++; 
    6065            } 
     
    216221  if (!isInteger(theForm.number.value)) 
    217222    return warnInvalid(theForm.number, msgInvalidNumber); 
    218   if (!isAlphanumeric(theForm.name.value)) 
    219     return warnInvalid(theForm.name, msgInvalidName); 
    220223   
    221224  defaultEmptyOK = true;