/[suikacvs]/messaging/newsportal/newsportal.php
Suika

Diff of /messaging/newsportal/newsportal.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.15 by wakaba, Sat Dec 1 12:58:35 2001 UTC revision 1.20 by wakaba, Sat Dec 1 13:04:57 2001 UTC
# Line 449  function headerDecode($value) { Line 449  function headerDecode($value) {
449      return(mb_convert_encoding($newvalue, "EUC-JP", "auto"));      // parts      return(mb_convert_encoding($newvalue, "EUC-JP", "auto"));      // parts
450    } else {    } else {
451      if (eregi('".*"',$value)) {  // quoted-pair      if (eregi('".*"',$value)) {  // quoted-pair
452        $newvalue=ereg_replace('(.*)"(.*)"(.*)','\1'.decode_quoted_pair('\2').'\3',$value);        $newvalue=ereg_replace('(.*)"(.*)"(.*)',"\\1".decode_quoted_pair("\\2")."\\3",$value);
453        return(mb_convert_encoding($newvalue, "EUC-JP", "auto"));        return(mb_convert_encoding($newvalue, "EUC-JP", "auto"));
454      } else {   // there wasn't anything encoded, return the original string      } else {   // there wasn't anything encoded, return the original string
455        return(mb_convert_encoding($value, "EUC-JP", "auto"));        return(mb_convert_encoding($value, "EUC-JP", "auto"));
# Line 458  function headerDecode($value) { Line 458  function headerDecode($value) {
458  }  }
459    
460  function decode_quoted_pair($value) {  function decode_quoted_pair($value) {
461        return(ereg_replace('\\\\(.)','\1',$value));        return(ereg_replace('\\\\(.)',"\\1",$value));
462  }  }
463    
464  function getTimestamp($value) {  function getTimestamp($value) {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.20

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24