Commit graph

1576 commits

Author SHA1 Message Date
tokul
c84d2b36eb Closes bug 672350. Right-to-Left language fixes from Saleh Madi 2003-02-02 13:14:58 +00:00
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
Thijs Kinkhorst
cfa5204ef3 Continue development 2003-01-24 09:56:34 +00:00
Thijs Kinkhorst
9b174f2895 Releasing RC2a 2003-01-24 09:42:17 +00:00
tassium
5e5cc2c2bc Fixes XSS bug in mailbox_display with malicious From: headers.
Thanks to sailfrog for finding this one!
2003-01-23 22:12:26 +00:00
Thijs Kinkhorst
e4adb83265 Version check fixes.
1) the required version is minimum 4.0.4 so the 4.0.2 check is always passed.
2) make the check in prefs.php also work when new php versions are released %-)
2003-01-23 20:50:22 +00:00
Thijs Kinkhorst
c02ac502f8 Obsolete duplicate function to make sure version comparison is done in a
predictable way.
2003-01-23 20:14:43 +00:00
Thijs Kinkhorst
2a24b91684 Continue development 2003-01-23 18:34:05 +00:00
Thijs Kinkhorst
ac398c4534 RC2 2003-01-23 17:09:54 +00:00
tokul
e8a1638151 Rollback LTR changes. it will be resubmitted after stable release. 2003-01-22 10:02:48 +00:00
tokul
997ccaec23 Rollback RTL changes. this is mailbox_display.php v.1.301
Changes will be resubmitted after stable release.
2003-01-22 09:45:40 +00:00
tassium
ace155adeb I have rolled back Stefan's additions.
This is the equivalent to rev 1.143.
Yes, this is stepping on Stefan's toes a little, but we didn't want a CVS snapshot made with new featuration added. Sorry Stefan, please feel free to commit new feature code once we branch 1.5.0.
2003-01-22 03:23:25 +00:00
centaurix
26cadeaec0 initial files for using vcard in the gui 2003-01-21 21:05:08 +00:00
tokul
97ef0e6829 Right-to-Left fixes by Saleh Madi <webmail@p-i-s.com> 2003-01-19 16:41:23 +00:00
tokul
acc6a14ad6 Hebrew locale is not he_HE, but he_IL 2003-01-18 09:05:11 +00:00
Thijs Kinkhorst
970c65a797 Obsolete sqm_topdir(), thanks Jimmy Connor for the tip.
sqm_topdir breaks installs that have open_basedir set, and it was only
used in one place, functionality has been superseded by SM_PATH.
2003-01-17 13:50:33 +00:00
Thijs Kinkhorst
88a42368fc Obsolete code because crc32() does exist in our minimum php requirements. 2003-01-15 15:49:23 +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
tokul
01bfbab813 Added Arabic. 2003-01-13 14:13:46 +00:00
tassium
c153825d61 Removed function sqimap_mailbox_has_children() from imap_mailbox.php
Marc pointed out that \HasChildren is an extension, not part of IMAP4rev1.
Got the effect I needed from already existing code.

Summary: Display purge link for trash in all cases, this time done in accordance with RFC 2060. (Eliminates an extra IMAP call, too.)
2003-01-10 15:48:49 +00:00
jangliss
cf1ed1cacd Added a check in sqimap_login to verify $onetimepad is set. Not sure why
no check was ensured before.  Should make plugin developers a little happier
in some cases too.
2003-01-09 20:12:40 +00:00
tassium
fa8f8b94e4 Fixed left_main.php to show purge link for trash if it contains folders but no messages.
New function in functions/imap_mailbox.php: sqimap_mailbox_has_children(mailbox,stream)
(Stream is optional)
2003-01-09 19:22:15 +00:00
Thijs Kinkhorst
603c729096 When in threaddisplay, trim subjects of indented messages more. 2003-01-09 15:56:38 +00:00
Erin Schnabel
d0bc2d45e0 This makes more sense to me, and has been shown not to break anything, and while the other method should probably be fixed at some point, I think this is good for now. 2003-01-09 01:40:00 +00:00
tokul
344519528d $default_charset variable equal to user's locale when decoding messages.
set_my_locale function gets charset from locale if no language variable
found in user's prefs. Fixes possible problem when $default_charset and
$squirrelmail_default_language are incorrectly set in config.
2003-01-07 19:49:51 +00:00
Thijs Kinkhorst
3531e21d4d Implement sqextractGlobalVar with sqgetGlobalVar 2003-01-04 18:17:38 +00:00
Thijs Kinkhorst
dfddd88487 Undo this xhtml-compatibility thing because the html_tag function is used
incorrectly in many places around the code: no value is specified while
tags do have a value.
2003-01-04 18:00:19 +00:00
tassium
32740804c9 Improved error handling, especially for everyone whose CVS install just broke because plain auth no longer exists. (Now renamed to login) 2003-01-04 06:21:06 +00:00
tassium
d1cc599af5 Ok, I screwed up. When I put in cram-md5 and digest-md5, I left the alternative as being "plain", which is a misnomer. There really IS a mechanism called "plain", and what we're doing isn't it. So I've renamed our "plain" to "login".
For IMAP, it uses the IMAP4rev1 "LOGIN <user> <pass>" syntax.
For SMTP, it uses the AUTH LOGIN (two-step) method.
2003-01-04 06:01:26 +00:00
Erin Schnabel
6e38ee4a74 Thanks shiruken! needed single quotes around switch constants 2003-01-04 05:26:52 +00:00
Erin Schnabel
39496fd3bc added constants to fetch COOKIE and SERVER values 2003-01-04 05:02:40 +00:00
Erin Schnabel
9974a58f86 swap in the sqgetGlobalVar function 2003-01-04 04:15:37 +00:00
Erin Schnabel
5ec388426b use new function to get POST variables 2003-01-04 03:09:00 +00:00
Erin Schnabel
865e0e55e1 Use new function to get GET vars 2003-01-04 02:17:35 +00:00
Erin Schnabel
3b6e061082 Added new function:
sqgetGlobalVar($name, $value [, location] );
This function looks for a variable named $name.
If found, it sets the value into $value (in signature, is &$value) and
returns true. If the variable is not found, the function returns false.

The optional constant allows you to pick which location to
check for the variable in. If none is specified, it will check,
in this order, $_SESSION, $_POST, $_GET. These are defined constants
for use with this function:
 SQ_INORDER - same as specifying nothing, check all three.
 SQ_SESSION
 SQ_POST
 SQ_GET

    It is recommended that plugins, all functions use this instead of
    directly accessing $_SESSION/$_POST/$_GET arrays, as we have
    already taken care of scope (global, etc).

    The Administration plugin has been updated to use this function,
    as an example.

    This is an alternative to sqextractGlobalVar($name), which looks
    for a var named $name in the SESSION/GET/POST arrays, and creates
    a global variable if defined.
2003-01-04 01:12:14 +00:00
tokul
6e4087ecf9 Added windows-1253 and utf-8 decoding
Added windows-1254 decoding from stable
Removed comments in windows-1257, iso-8859-4 and iso-8859-13 decoding
2003-01-02 09:00:44 +00:00
philippe_mingo
ca403f2cbe Internationalization bugfix. 2003-01-01 11:18:31 +00:00
Thijs Kinkhorst
b9f6f4ca77 Forgot a SM_PATH 2002-12-31 14:36:56 +00:00
Thijs Kinkhorst
3a8028f597 *** empty log message *** 2002-12-31 13:06:27 +00:00
Thijs Kinkhorst
75de52f258 Getting ready for 1.4.0 RC1 2002-12-31 12:49:43 +00:00
Thijs Kinkhorst
f0fc6b10b3 Session naming in devel. 2002-12-30 19:52:19 +00:00
Erin Schnabel
2fe515893c forgot to re-enable after testing.. duh. 2002-12-29 19:12:20 +00:00
Erin Schnabel
415b302b6f Wanted to add the SquirrelMail versioning functions we'd talked about before
we split the streams to the new RC for 1.4.

check_sm_version performs similar function to check_php_version, and
will return true if version is >= what is specified.

For Thijs/Jonathan - the check_sm_version will return false if the
constant it checks against is not defined, making the function itself
safe for previous levels,  should you want to roll it back to stable
to allow plugin developers to use the check_sm_version function to
test for 'new' elements like SM_PATH, etc. that are present in 1.3.x
and up.

More info (though not a ton, I'll admit) is in the sm2-planning module
in cvs: cvs co sm2-planning, then pull up sm2-planning/index.php in your
browser.
2002-12-29 19:10:34 +00:00
Thijs Kinkhorst
3b7230b66a A small start in making Sqm XHTML 1.0 valid 2002-12-22 13:39:43 +00:00
Thijs Kinkhorst
583d3d87df Also give the remaining Subject column a width% that is the complement
of the sum of the other columns. This solves some macintosh-IE table
problems and is more correct.
2002-12-21 17:05:48 +00:00
Thijs Kinkhorst
b57577e4fd Assorted fixes, courtesy Roberto De Luca && kink 2002-12-21 16:13:47 +00:00
stekkel
bc999beb97 check for 0 messages in case of threadview 2002-12-20 15:29:53 +00:00
Thijs Kinkhorst
6deb18e8dc Fix for IIS, thanks Bruce Richardson 2002-12-20 11:35:48 +00:00
Erin Schnabel
8d444c3e17 Carried over modification made to file_prefs to distinguish
between a 0 value, and an unset value using ===.

Certain prefs were unsaveable after the XSS changes, which
cast zero values to ints (instead of strings), causing
them to pass the $set_to == '' check, and thus be treated
as an unset value, rather than a value of 0.
2002-12-17 20:36:23 +00:00