#include "common.h"
Go to the source code of this file.
Data Structures | |
| struct | url_params_t |
| Parsed URL parameters (from query string). More... | |
Defines | |
| #define | url_params_count(x) ((x)->count) |
Enumerations | |
| enum | url_policy_t { URL_POLICY_ALLOW_IP_AS_HOST = (1 << 0), URL_POLICY_ALLOW_LOCAL_HOSTS = (1 << 1), URL_POLICY_ALLOW_ANY_PORT = (1 << 2), URL_POLICY_ALLOW_STATIC_FILES = (1 << 3), URL_POLICY_ALLOW_ANY_CHAR = (1 << 4), URL_POLICY_GWC_RULES = 0 } |
Functions | |
| gchar * | url_escape (const gchar *url) |
| Escape undesirable characters using xx, where xx is an hex code. | |
| gchar * | url_escape_query (const gchar *url) |
| Same as url_escape() except for:. | |
| gchar * | url_escape_shell (const gchar *url) |
| Escapes the given string for safe use in a shell or file: URL. | |
| gchar * | url_fix_escape (const gchar *url) |
| Don't touch '?', '&', '=', ':', HH. | |
| gint | url_escape_into (const gchar *url, gchar *target, gint len) |
| Escape undesirable characters using xx, where xx is an hex code. | |
| gchar * | url_escape_cntrl (const gchar *url) |
| Escape control characters using xx, where xx is an hex code. | |
| gchar * | url_unescape (gchar *url, gboolean inplace) |
| Unescape string, in-place if `inplace' is TRUE. | |
| gchar * | url_from_absolute_path (const gchar *path) |
| Creates a file: URL from the given absolute path and escapes it properly for safe use in a shell too. | |
| url_params_t * | url_params_parse (gchar *query) |
| Parse all the parameters in the URL query string. | |
| const gchar * | url_params_get (url_params_t *up, const gchar *name) |
| Get the value of a parameter, or NULL if the parameter is not present. | |
| void | url_params_free (url_params_t *up) |
| Dispose of the url_params_t structure. | |
| gchar * | url_normalize (gchar *url, url_policy_t pol) |
| |
|
|
|
|
|
|
|
|
Escape undesirable characters using xx, where xx is an hex code.
|
|
|
Escape control characters using xx, where xx is an hex code.
|
|
||||||||||||||||
|
Escape undesirable characters using xx, where xx is an hex code. This is done in the `target' buffer, whose size is `len'.
|
|
|
Same as url_escape() except for:. '+' is also escaped for the query string. ':' is not escaped.
|
|
|
Escapes the given string for safe use in a shell or file: URL.
|
|
|
Don't touch '?', '&', '=', ':', HH.
|
|
|
Creates a file: URL from the given absolute path and escapes it properly for safe use in a shell too.
|
|
||||||||||||
|
|
|
|
Dispose of the url_params_t structure.
|
|
||||||||||||
|
Get the value of a parameter, or NULL if the parameter is not present. The value returned has already been URL-unescaped. |
|
|
Parse all the parameters in the URL query string. All parameter values are stored in their URL-unescaped form, but parameter names are NOT un-escaped.
|
|
||||||||||||
|
Unescape string, in-place if `inplace' is TRUE. Returns the argument if un-escaping is NOT necessary, a new string otherwise unless in-place decoding was requested.
|
1.3.9.1