diff options
author | Dan Winship <danw@src.gnome.org> | 2003-03-27 23:37:47 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2003-03-27 23:37:47 +0800 |
commit | be9db81541bff178c5087a47becd5afc519afcb6 (patch) | |
tree | f9e15fc56ece03566b03b4d35d74b5fbbd4ba0bd /camel/camel-url.h | |
parent | b3293f0d99b13c1ee49f3605534ee3552cf19158 (diff) | |
download | gsoc2013-evolution-be9db81541bff178c5087a47becd5afc519afcb6.tar.gz gsoc2013-evolution-be9db81541bff178c5087a47becd5afc519afcb6.tar.zst gsoc2013-evolution-be9db81541bff178c5087a47becd5afc519afcb6.zip |
Like camel_url_encode, but works directly on an existing GString.
* camel-url.c (append_url_encoded): Like camel_url_encode, but
works directly on an existing GString.
(camel_url_to_string, output_param): Use it.
(camel_url_encode): Likewise. Remove "escape_unsafe" arg since the
"unsafe" chars are the ones that should *always* be escaped, and
the places we were passing FALSE were wrong.
(camel_url_decode): replace with a new version
* camel-file-utils.c (camel_file_util_safe_filename): Remove extra
arg to camel_url_encode.
* tests/misc/url.c (main): Add tests of basic URL parsing and
unparsing
svn path=/trunk/; revision=20545
Diffstat (limited to 'camel/camel-url.h')
-rw-r--r-- | camel/camel-url.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/camel/camel-url.h b/camel/camel-url.h index 6bce26c8ad..562befa83e 100644 --- a/camel/camel-url.h +++ b/camel/camel-url.h @@ -59,8 +59,7 @@ CamelURL *camel_url_new (const char *url_string, CamelException *ex); char *camel_url_to_string (CamelURL *url, guint32 flags); void camel_url_free (CamelURL *url); -char *camel_url_encode (const char *part, gboolean escape_unsafe, - const char *escape_extra); +char *camel_url_encode (const char *part, const char *escape_extra); void camel_url_decode (char *part); /* for editing url's */ |