Commit graph

252 commits

Author SHA1 Message Date
stekkel
f3b443c708 get the filename from the properties if the is no disposition info available
in the bodystructure.
2003-01-30 18:04:55 +00:00
stekkel
137f4a7563 fix for unsafe images links. Somehow the wrong were in de view unsafe images
link. passed_ent_id is used in case of attached message/rfc822 messages,
ent_id is used for specifying the mime-entity_id. If passed_ent_id is
available we know that the message with entity_id = passed_ent_id contains
a rfc822header.
2003-01-27 09:06:21 +00:00
stekkel
6dfee66432 * modifications in order to use ent_id=0 for downloading full messages
* patch from Seth E. Randall for getting the filename from attachments
2003-01-14 15:59:54 +00:00
Erin Schnabel
865e0e55e1 Use new function to get GET vars 2003-01-04 02:17:35 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
stekkel
53ebca3407 html correction 2002-12-09 09:48:46 +00:00
stekkel
1e49e6a544 Proper initialisation of view_unsafe_images
fix for displaying the hide unsafe images link. If you show the unsafe
images, has_unsafe_images = false because it looks for the image
replacements. The hide unsafe images link was never initialized correct.
2002-12-09 09:05:37 +00:00
stekkel
0199204e17 show untitled-[entity-id] in case of message/rfc822 attachments with no
subject.
2002-11-05 12:03:24 +00:00
stekkel
06769b6720 minor changes to the bodystructure parser 2002-11-04 20:24:06 +00:00
Thijs Kinkhorst
5d52e3db26 Use the new check_php_version function everywhere 2002-10-29 17:26:31 +00:00
indiri69
1476e8d128 Fixed Unsafe Viewing link 2002-10-28 22:15:38 +00:00
stekkel
ad96d34bde set default download link to absolute_dl = true to force download instead of
viewing inline
2002-10-23 17:48:08 +00:00
Thijs Kinkhorst
4e00cacd75 rg=0 fix from stable 2002-10-23 12:14:12 +00:00
Thijs Kinkhorst
708214822b Use a consistent capitalization of "SquirrelMail" throughout the application. 2002-10-22 20:55:22 +00:00
stekkel
b3bd69dc5d Remove save extension check for images because it can cause problems when
the extension is not save and the image url points to the url base address.
If the server uses session trans_sid then somehow the session is destroyed
because of the automatic ?SID=session_id_string.
At least that's what I think what happens.
2002-10-17 13:48:04 +00:00
Thijs Kinkhorst
0d5d413efc Remove retrievalerror.php 2002-10-17 08:58:48 +00:00
jmunro
f00aea8423 fixes attachment links when viewing messages from search results 2002-10-07 16:41:23 +00:00
stekkel
982bc03d03 added unsave tags (commited to stable by Konstantin) 2002-09-13 17:22:46 +00:00
indiri69
56f1d28aec More SM_PATH changes 2002-09-10 22:35:30 +00:00
thomppj
9001d31cf8 Converted all files in functions/ to use SM_PATH. This will break all
plugins. Each callable script needs a:

  define('SM_PATH', '../../');

Or something like that put at the top.
2002-09-06 00:31:43 +00:00
stekkel
160495f0f7 previous cleanup broke the find_ent_id function 2002-09-05 17:34:27 +00:00
indiri69
9e71dc6684 Formatting changes and added some more html->plain transforms. 2002-08-30 17:55:25 +00:00
thomppj
caeff8b548 First, more formatting conventions.
1. Wrap all operands of a complex expression with parentheses.
     For instance:
         if ($bob == 'foo' || $bob == 'bar') {
     is wrong. Do this instead:
         if (($bob == 'foo') || ($bob == 'bar')) {

  2. Carefully decide between pre and post incrementation. If it
     does not matter, always choose pre because it is technically
     more efficient. For instance:
         for ($i = 0; $i < $count; $i++) {
     is wrong. Do this instead:
         for ($i = 0; $i < $count; ++$i) {

  3. Classes should be named in style like this:
         MessageHeader
         Rfc8222Header
     etc. When there is an acronym at the beginning, treat it
     like a word - do NOT captitalize each letter of the acronym.

  4. Put each class in a seperate file named ClassName.class.php.
     Related classes can be put in one directory and then included
     in a main include file.

Second, big changes with mime.class.php here. And I don't think I broke
anything. (Sounds like famous last words, eh?)
2002-08-29 23:42:46 +00:00
stekkel
2487cf51be htmlspecialvars bodystructure 2002-08-27 17:38:01 +00:00
stekkel
9d9bd3f356 Added error message in case the bodystructure couldn't processed. 2002-08-27 17:23:09 +00:00
stekkel
0c00d72e12 added extra check for save internal link extensions. (for use with
magicHTML)
Maybe this is the wrong fix but in case of iframes tags with a cid link to an
internal entity it's possible that stupid users download attached virus
entities because the iframe src pointed to a filename with .scr, .exe, .bat or
other extension. This patch only allow the following hardcoded save extensions:
gif, jpeg, jpg, png, bmp.

To do:
notify user in case of invalid extensions.
totally remove iframes because I think in most cases (virus) they are unsave.
2002-08-26 14:31:15 +00:00
stekkel
2dbacf86da typo 2002-08-26 09:31:22 +00:00
philippe_mingo
7f9fbe7fd2 Minor sintax changes 2002-08-26 08:32:21 +00:00
indiri69
17197b6e9c Removed findDisplayEntity. The mime class has one like it already. 2002-08-24 19:39:02 +00:00
indiri69
08de620a70 Change &nbsp; &gt; &lt; to they're plain text equivalents. Now when we view text/html as plaintext it doesn't look as bad. 2002-08-23 16:45:41 +00:00
stekkel
c9e1d627c3 fixed warnings 2002-08-23 16:44:14 +00:00
philippe_mingo
c3a33a5b83 Indentation 2002-08-23 16:27:28 +00:00
philippe_mingo
08f45be1c0 Masato:
Change into the extra encode philosophy to allow other languages to
use it.
2002-08-23 15:46:58 +00:00
philippe_mingo
6a1659b234 Masato
Japanes patch
2002-08-22 09:33:09 +00:00
stekkel
6d85a93ba4 fix for image-display $passed_ent_id -> ent_id
Now we only use passed_ent_id in case of message/rfc822 attachments
2002-08-21 10:10:52 +00:00
stekkel
3ef0535ba5 download related fixes 2002-08-19 14:29:33 +00:00
stekkel
b727d2edd2 fixed warning 2002-08-19 12:38:56 +00:00
stekkel
d8d16e739a fix for getting filenames for attachments 2002-08-19 09:55:34 +00:00
indiri69
fc096e50d7 Removed a bunch of redundant code in formatAttachments. 2002-08-16 21:44:35 +00:00
stekkel
6329b2af52 adapt to changed mime.class.php 2002-08-16 10:34:16 +00:00
indiri69
c7133f5c2c Replaced code with call to function with same purpose. Also, the code didn't
work right anyway :)
2002-08-15 19:48:17 +00:00
stekkel
ab8ef140e3 formatting formatAttachments moved to read_body.php 2002-08-15 14:15:47 +00:00
indiri69
154b1bfd6d Added function to find a given entity type 2002-08-14 16:22:31 +00:00
stekkel
86e5cf0709 rfc822_header 2002-08-06 22:46:03 +00:00
stekkel
604ea60204 fix for displaying attachment names 2002-07-30 16:15:07 +00:00
stekkel
843d3b03a4 fix for checking $MDNSent flag 2002-07-25 17:43:39 +00:00
stekkel
17b75f0080 Added LINK to the forbidden tag-list in magic HTML because it can contain
external stylesheets or other dangerous things.

In IE6 the included stylesheets messed up the layout of SM although the link
attribute only is permitted in the head section ??
2002-07-24 13:04:38 +00:00
stekkel
43aebe9a6d removed findDisplayEntity stuff and split the format Body and format
Attachment function
2002-07-12 16:13:57 +00:00
stekkel
891b3dd79d added parameters id and mailbox to formadBody / magicHTML for better/ easier
handle message/rfc822 attachments
2002-07-09 12:53:47 +00:00
stekkel
fdd2c4afd4 fix. (I'm getting tired of explaining the changes) 2002-07-05 17:15:08 +00:00