Dillo v3.1.1-99-gf3103cc4
|
#include <unistd.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>
#include <sys/socket.h>
#include "dpiutil.h"
Go to the source code of this file.
Macros | |
#define | _MSG(...) |
#define | MSG(...) printf("[dpiutil.c]: " __VA_ARGS__) |
Functions | |
char * | Escape_uri_str (const char *str, const char *p_esc_set) |
char * | Unescape_uri_str (const char *s) |
char * | Escape_html_str (const char *str) |
char * | Unescape_html_str (const char *str) |
char * | Filter_smtp_hack (char *url) |
Variables | |
static const char * | unsafe_chars = "&<>\"'" |
static const char * | unsafe_rep [] |
static const int | unsafe_rep_len [] = { 5, 4, 4, 6, 5 } |
char * Escape_html_str | ( | const char * | str | ) |
Definition at line 93 of file dpiutil.c.
References dStr_append(), dStr_append_c(), dStr_free(), dStr_sized_new(), FALSE, Dstr::str, unsafe_chars, and unsafe_rep.
Referenced by Bms_add(), Bms_sec_add(), Bms_update_sec_title(), Bms_update_title(), File_info2html(), File_print_parent_dir(), File_send_dir(), and main().
char * Escape_uri_str | ( | const char * | str, |
const char * | p_esc_set | ||
) |
Definition at line 36 of file dpiutil.c.
References dStr_append_c(), dStr_free(), dStr_sized_new(), FALSE, and Dstr::str.
Referenced by Bms_add(), File_info2html(), File_print_parent_dir(), File_send_dir(), and make_wget_argv().
char * Filter_smtp_hack | ( | char * | url | ) |
Definition at line 148 of file dpiutil.c.
References D_ASCII_TOLOWER.
Referenced by make_wget_argv().
char * Unescape_html_str | ( | const char * | str | ) |
Definition at line 115 of file dpiutil.c.
References dStrdup(), dStrnAsciiCasecmp(), unsafe_chars, unsafe_rep, and unsafe_rep_len.
Referenced by Bms_load(), Bms_save(), Bmsrv_add_bm(), and Bmsrv_modify_add_url().
char * Unescape_uri_str | ( | const char * | s | ) |
Definition at line 64 of file dpiutil.c.
References D_ASCII_TOUPPER, and dStrdup().
Referenced by datauri_get_data().
|
static |
Definition at line 84 of file dpiutil.c.
Referenced by Escape_html_str(), and Unescape_html_str().
|
static |
Definition at line 85 of file dpiutil.c.
Referenced by Escape_html_str(), and Unescape_html_str().
|
static |
Definition at line 87 of file dpiutil.c.
Referenced by Unescape_html_str().