mimeDecode cid: images help
Moderator: General Moderators
-
Blackl3232
- Forum Newbie
- Posts: 3
- Joined: Sat May 29, 2004 11:42 am
mimeDecode cid: images help
i have a script that uses mimedecode to get the html part out of a mime message and everything works fine except for images. i need a way to get the <IMG SRC="cid:some_stuff457468"> to work. right now i save the file then replace all cid: with blank but this doesnt work good becuase if cid: is in their message it will remove it.
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
-
Blackl3232
- Forum Newbie
- Posts: 3
- Joined: Sat May 29, 2004 11:42 am
-
Illusionist
- Forum Regular
- Posts: 903
- Joined: Mon Jan 12, 2004 9:32 pm
-
Blackl3232
- Forum Newbie
- Posts: 3
- Joined: Sat May 29, 2004 11:42 am
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
how about....
note: slightly tested
note: slightly tested
Code: Select all
preg_replace("|(<img[^>]*?\s*?src\s*?=\s*?")cid:|is","\\1",$line);