summaryrefslogtreecommitdiff
path: root/program/lib/tnef_decoder.inc
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-04 08:03:48 +0000
committeralecpl <alec@alec.pl>2009-05-04 08:03:48 +0000
commitdb5abc6c211d78ad80b716ddef11eabe5e32f137 (patch)
tree2a85daf1cbce05e8787f0f7af38110843821cf66 /program/lib/tnef_decoder.inc
parent2f7405e3cec2dba156fe80ca0b041a218528562e (diff)
- ereg -> preg
Diffstat (limited to 'program/lib/tnef_decoder.inc')
-rw-r--r--program/lib/tnef_decoder.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/program/lib/tnef_decoder.inc b/program/lib/tnef_decoder.inc
index 8e3682a9b..750faf657 100644
--- a/program/lib/tnef_decoder.inc
+++ b/program/lib/tnef_decoder.inc
@@ -185,12 +185,12 @@ function extract_mapi_attrs($buf, &$attachment_data)
switch($attr_name)
{
case TNEF_MAPI_ATTACH_LONG_FILENAME: // used in preference to AFILENAME value
- $attachment_data[0]['name'] = ereg_replace('.*[\/](.*)$', '\1', $value); // strip path
+ $attachment_data[0]['name'] = preg_replace('/.*[\/](.*)$/', '\1', $value); // strip path
break;
case TNEF_MAPI_ATTACH_MIME_TAG: // Is this ever set, and what is format?
- $attachment_data[0]['type0'] = ereg_replace('^(.*)/.*', '\1', $value);
- $attachment_data[0]['type1'] = ereg_replace('.*/(.*)$', '\1', $value);
+ $attachment_data[0]['type0'] = preg_replace('/^(.*)\/.*/', '\1', $value);
+ $attachment_data[0]['type1'] = preg_replace('/.*\/(.*)$/', '\1', $value);
break;
case TNEF_MAPI_ATTACH_DATA:
@@ -247,7 +247,7 @@ function tnef_decode_attachment(&$buf, &$attachment_data)
case TNEF_AFILENAME: // filename
$length = tnef_geti32($buf);
- $attachment_data[0]['name'] = ereg_replace('.*[\/](.*)$',
+ $attachment_data[0]['name'] = preg_replace('/.*[\/](.*)$/',
'\1',
tnef_getx($length, $buf)); // strip path
tnef_geti16($buf); //checksum