Changeset 2122 for trunk/include


Ignore:
Timestamp:
Oct 6, 2007, 12:46:10 AM (17 years ago)
Author:
rvelices
Message:
  • remove str_translate_to_ascii7bits and lang_table_translate_ascii7bits
Location:
trunk/include
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/functions.inc.php

    r2089 r2122  
    11161116
    11171117/**
    1118  * Translate string in string ascii7bits
    1119  * It's possible to do that with iconv_substr
    1120  * but this fonction is not avaible on all the providers.
    1121  *
    1122  * @param string str
    1123  * @return string
    1124  */
    1125 function str_translate_to_ascii7bits($str)
    1126 {
    1127   global $lang_table_translate_ascii7bits;
    1128 
    1129   $src_table = array_keys($lang_table_translate_ascii7bits);
    1130   $dst_table = array_values($lang_table_translate_ascii7bits);
    1131 
    1132   return str_replace($src_table , $dst_table, $str);
    1133 }
    1134 
    1135 /**
    11361118 * returns the corresponding value from $themeconf if existing. Else, the
    11371119 * key is returned
  • trunk/include/functions_mail.inc.php

    r2121 r2122  
    107107    if ($cvt_name!="")
    108108    {
    109       $cvt_name = encode_mime_header('"'.$cvt_name.'"').' ';
     109      $cvt_name = encode_mime_header(
     110                '"'
     111                .addcslashes($cvt_name,'"')
     112                .'"');
     113      $cvt_name .= ' ';
    110114    }
    111115
Note: See TracChangeset for help on using the changeset viewer.