/[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.21 by wakaba, Sat Dec 1 13:24:46 2001 UTC revision 1.22 by wakaba, Sat Dec 1 13:32:49 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        ereg('(.*)"(.*)"(.*)',$value,$vals);        ereg('(.*)"(([^"]+|\\.)*)"(.*)',$value,$vals);
453        $newvalue = $vals[1].decode_quoted_pair($vals[2]).$vals[3];        $newvalue = $vals[1].decode_quoted_pair($vals[2]).$vals[3];
454        return(mb_convert_encoding($newvalue, "EUC-JP", "auto"));        return(mb_convert_encoding($newvalue, "EUC-JP", "auto"));
455      } else {   // there wasn't anything encoded, return the original string      } else {   // there wasn't anything encoded, return the original string

Legend:
Removed from v.1.21  
changed lines
  Added in v.1.22

admin@suikawiki.org
ViewVC Help
Powered by ViewVC 1.1.24