398 |
} |
} |
399 |
|
|
400 |
function encode_newsgroup ($groupname) { |
function encode_newsgroup ($groupname) { |
401 |
return urlencode (str_replace ('.', ':', $groupname)); |
return str_replace ('.', ':', urlencode ($groupname)); |
402 |
} |
} |
403 |
|
|
404 |
/* |
/* |
554 |
function decode_structured_body ($body) { |
function decode_structured_body ($body) { |
555 |
$patterns = array ( |
$patterns = array ( |
556 |
"/\"((?:[^\"\\\\]+|\\\\.)*)\"/e", |
"/\"((?:[^\"\\\\]+|\\\\.)*)\"/e", |
557 |
"/\(((?:[^()\\\\]+|\\\\.|(?:\((?:[^()\\\\]+|\\\\.|(?:\((?:[^)\\\\]+|\\\\.\ |
"/\(((?:[^()\\\\]+|\\\\.|(?:\((?:[^()\\\\]+|\\\\.|(?:\((?:[^)\\\\]+|\\\\.\)*\))*\)))*)))\)/e", |
|
)*\)))*\)))*)\)/e", |
|
558 |
); |
); |
559 |
$replace = array ( |
$replace = array ( |
560 |
"mb_convert_encoding(fake_jisx0213(decode_quoted_pair('\\1')),'EUC-JP','auto')", |
"mb_convert_encoding(fake_jisx0213(decode_quoted_pair('\\1')),'EUC-JP','auto')", |