aboutsummaryrefslogtreecommitdiffstats
path: root/camel
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-07-26 23:13:50 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-07-26 23:13:50 +0800
commit222e4d4b62bb55f2fe32d79b8be9129f0f7ceba4 (patch)
tree770b4a12260c77f1b2f35322b91e33b785a4849d /camel
parent53f0a7f9e42c3544eaf9f4b70f449b3e1efa299d (diff)
downloadgsoc2013-evolution-222e4d4b62bb55f2fe32d79b8be9129f0f7ceba4.tar.gz
gsoc2013-evolution-222e4d4b62bb55f2fe32d79b8be9129f0f7ceba4.tar.zst
gsoc2013-evolution-222e4d4b62bb55f2fe32d79b8be9129f0f7ceba4.zip
Should now always prepend a '/' before the path if it doesn't already
2000-07-26 Jeffrey Stedfast <fejj@helixcode.com> * camel-url.c (camel_url_to_string): Should now always prepend a '/' before the path if it doesn't already exist. * providers/imap/camel-imap-folder.c: Fixed a few compiler warnings svn path=/trunk/; revision=4346
Diffstat (limited to 'camel')
-rw-r--r--camel/ChangeLog3
-rw-r--r--camel/camel-url.c30
2 files changed, 19 insertions, 14 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 6f87c687a7..6e48d24adb 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,8 @@
2000-07-26 Jeffrey Stedfast <fejj@helixcode.com>
+ * camel-url.c (camel_url_to_string): Should now always prepend a '/'
+ before the path if it doesn't already exist.
+
* providers/imap/camel-imap-folder.c: Fixed a few compiler warnings
2000-07-25 Jeffrey Stedfast <fejj@helixcode.com>
diff --git a/camel/camel-url.c b/camel/camel-url.c
index 75b7ac985e..bf578a41a5 100644
--- a/camel/camel-url.c
+++ b/camel/camel-url.c
@@ -43,7 +43,8 @@
*
* protocol://user;AUTH=mech:password@host:port/path
*
- * The protocol, followed by a ":" is required. If it is followed by * "//", there must be an "authority" containing at least a host,
+ * The protocol, followed by a ":" is required. If it is followed by * "//",
+ * there must be an "authority" containing at least a host,
* which ends at the end of the string or at the next "/". If there
* is an "@" in the authority, there must be a username before it,
* and the host comes after it. The authmech, password, and port are
@@ -193,19 +194,20 @@ camel_url_to_string (CamelURL *url, gboolean show_passwd)
if (url->path)
path = camel_url_encode (url->path, FALSE, NULL);
- return_result = g_strdup_printf ("%s:%s%s%s%s%s%s%s%s%s%s%s",
- url->protocol,
- host ? "//" : "",
- user ? user : "",
- authmech ? ";auth=" : "",
- authmech ? authmech : "",
- passwd ? ":" : "",
- passwd ? passwd : "",
- user ? "@" : "",
- host ? host : "",
- *port ? ":" : "",
- port,
- path ? path : "");
+ return_result = g_strdup_printf ("%s:%s%s%s%s%s%s%s%s%s%s%s%s",
+ url->protocol,
+ host ? "//" : "",
+ user ? user : "",
+ authmech ? ";auth=" : "",
+ authmech ? authmech : "",
+ passwd ? ":" : "",
+ passwd ? passwd : "",
+ user ? "@" : "",
+ host ? host : "",
+ *port ? ":" : "",
+ port,
+ path && *path != '/' ? "/" : "",
+ path ? path : "");
g_free (user);
g_free (authmech);
g_free (passwd);
'>* KDE/FreeBSD team presents KDE SC 4.12.3 and KDE Workspace 4.11.7!makc2014-03-052-7/+40 * - Support stagingculot2014-02-281-3/+2 * Update to 4.1.5. It is partially based on the following PR.jkim2014-02-261-4/+4 * Use ${LDFLAGS} instead of constructing -L${LOCALBASE}/lib/${CC} manuallygerald2014-02-241-1/+1 * - Bump PORTREVISION after KDE4_PREFIX changemakc2014-02-181-0/+1 * KDE/FreeBSD team presents KDE SC 4.12.2 and KDE Workspace 4.11.6!makc2014-02-184-219/+107 * - Update to USES=tkgahr2014-02-181-2/+1 * - Convert to USES=tkgahr2014-02-181-4/+2 * Convert all USE_FORTRAN=yes to "USES=fortran, USE_GCC=yes". In most casestijl2014-02-172-6/+2 * - Swith from easy_install to install (and bump PORTREVISION)antoine2014-02-094-40/+6 * - Kill french/gfaim -- abandonwaregahr2014-02-056-118/+0 * - Update gimp-help ports to 2.8.1. Polish translation has been removed, newmakc2014-02-011-3/+3 * Remove ispell which is deprecated for long, consider using aspell instead or ...bapt2014-01-292-13/+0 * Fix properties on pkg-plistbapt2014-01-221-1/+0 * - Update to 5.0.2sunpoet2014-01-212-3/+3 * french/alphabet_sounds_fr: Fix and support stagemarino2014-01-163-17/+52 * Python cleanup:rene2014-01-141-1/+1 * . update to version 4.5.18;bsam2014-01-081-2/+2 * Update to version 4.5.17.bsam2013-12-251-2/+2 * - Update Calligra Suite to 2.7.5.avilla2013-12-173-5/+35 * - Fix the usage of 'python' to get rid of the implicit lang/pythonmva2013-12-151-0/+5 * Update to 5.0.1bapt2013-12-112-3/+3 * . svn copy tryton -> tryton28 ports;bsam2013-11-216-1/+49 * Restore "created by" header missing at some trytond* ports (in preparationbsam2013-11-181-0/+1 * Support STAGE (in preparation to commit PR/181691)..bsam2013-11-181-1/+0 * - Add my LOCAL to MASTER_SITESsunpoet2013-11-182-3/+4 * - Add my LOCAL to MASTER_SITESsunpoet2013-11-182-3/+4 * - Update to 4.12sunpoet2013-11-182-6/+7 * - Use single space after WWW:sunpoet2013-11-183-3/+3 * Fix stagingbapt2013-11-151-1/+1 * Update to version 4.5.15.bsam2013-11-111-2/+2 * Stagifybapt2013-11-041-1/+1 * Stagifybapt2013-11-041-6/+5 * Support stage, use bsdtar to extractbapt2013-11-041-1/+1 * Stagifybapt2013-11-041-1/+0 * Update to libmpc version 1.0.1 which brings the following fixes:gerald2013-10-265-3/+5 * - Update to 4.0.6.jkim2013-10-262-5/+4 * - Remove manual creation and removal of share/applications, as it's now in th...amdmi32013-10-222-2/+0 * Update to version 4.5.15.bsam2013-10-091-2/+2 * . support staging;bsam2013-10-061-1/+0 * Support stagebapt2013-09-241-4/+3 * Support stagebapt2013-09-241-6/+5 * Add NO_STAGE all over the place in preparation for the staging support (cat: ...bapt2013-09-2128-58/+39 * Update to version 4.5.14.bsam2013-08-231-2/+2 * Update to 4.0.5.jkim2013-08-231-4/+4 * - Convert to new perl frameworkaz2013-07-311-6/+3 * KDE3 and QT3 expired on 2013-07-01, remove these ports.rene2013-07-275-2642/+0 * Fix INDEX by really fixing the kde4-l10n portsbapt2013-07-101-0/+1 * KDE4 l10n fixes.rakuco2013-07-102-3/+1 * Update to version 4.5.13.bsam2013-07-081-2/+2 * Update the KDE Software Compilation to 4.10.5.rakuco2013-07-051-2/+2 * Update to KDE SC 4.10.4, proudly presented by the KDE on FreeBSD team.rakuco2013-07-032-2/+3 * Update to 4.0.4.jkim2013-06-201-4/+4 * - Set MASTER_SITES to MASTER_SITE_LOCAL due to the decommissioning ofculot2013-06-161-6/+3 * - Fix i18n manpagesmiwi2013-06-111-0/+3 * Update to version 4.5.12.bsam2013-06-101-2/+2 * - Update MASTER_SITES and COMMENTwen2013-05-191-3/+4 * KDE/FreeBSD team presents KDE SC 4.10.3 ports!makc2013-05-193-4/+12 * Update to 4.0.3.jkim2013-05-101-4/+4 * - Convert USE_ICONV=yes to USES=iconvmva2013-04-271-2/+1 * - Convert USE_GETTEXT to USES (part 4)ak2013-04-261-1/+1 * - Convert USE_GETTEXT to USES (part 2)ak2013-04-241-1/+1 * Convert f* to USES=pkgconfigbapt2013-04-231-2/+1 * Update to version 4.5.10.bsam2013-04-231-2/+2 * Update to 4.0.2.jkim2013-04-171-4/+4 * - Update Calligra and l10n ports to 2.6.2:avilla2013-03-302-35/+4 * KDE/FreeBSD team presents KDE SC 4.10.1 ports!makc2013-03-274-31/+72 * Finish converting french to new options frameworkbapt2013-03-261-13/+10 * Fix plist.thierry2013-03-232-0/+4 * Remove french/eficas_doc.thierry2013-03-206-618/+0 * Chase Code_Aster's upgrade.thierry2013-03-201-6/+2 * Upgrade to 3.0.6.thierry2013-03-202-14/+8 * Upgrade to 6.6.0-2.thierry2013-03-204-224/+177 * Upgrading Code_Aster to 10.8.0-3.thierry2013-03-206-100/+73 * french/gibi: IGNORE for more than 6 monthseadler2013-03-198-177/+0 * - Add translation of the restricted lineeadler2013-03-191-5/+3 * Update to version 4.5.9.bsam2013-03-112-3/+2 * Update to 4.0.1.jkim2013-03-091-4/+4 * Convert USE_BISON to USES= bisonbapt2013-03-081-6/+2 * - remove german, french and japanese localization of www/MT. They wererm2013-02-243-22/+0 * Merge from area51 repository:makc2013-02-053-3/+37 * Update to 3.6.5.jkim2013-02-051-4/+4 * KDE/FreeBSD team presents KDE SC 4.9.5 ports!makc2013-02-044-49/+300