extern chxjconvrule_entry*
chxj_apply_convrule(
- request_rec *r,
- apr_array_header_t *convrules);
+ request_rec* r,
+ apr_array_header_t* convrules);
#endif
/*
extern int
chxj_calc_ecc(
qr_code_t* qrcode,
- unsigned char* indata,
+ unsigned char* indata,
unsigned char* dst);
#endif
/*
apr_size_t srclen,
apr_size_t* dstlen,
chxjconvrule_entry* entryp,
- cookie_t* cookie);
+ cookie_t* cookie);
#endif
};
extern cookie_t*
-chxj_save_cookie(request_rec *r);
+chxj_save_cookie(
+ request_rec *r);
+
extern char* chxj_add_cookie_parameter(request_rec* r, char* value, cookie_t* cookie);
extern int chxj_cookie_check_host(request_rec* r, char* value);
extern cookie_t* chxj_load_cookie(request_rec* r, char* cookie_id);
extern void
chxj_dump_out(
- const char* title, const char* s, int slen);
+ const char* title,
+ const char* s, int slen);
#endif
extern char*
qs_out_apr_pstrcat(
- request_rec* r, char* o, char* s, int* len);
+ request_rec* r,
+ char* o, char* s, int* len);
extern char* qs_conv_istyle_to_format(request_rec* r, char* is);
#endif
struct xhtml_t {
Doc* doc;
char* out;
- int out_len;
+ int out_len;
int pre_flag;
int textarea_flag;
name = qs_get_attr_name(doc,attr);
value = qs_get_attr_value(doc,attr);
- if (strcasecmp(name, "href") == 0) {
+ if ((*name == 'h' || *name == 'H') && strcasecmp(name, "href") == 0) {
chtml30->out = apr_pstrcat(r->pool,
chtml30->out,
" href=\"",
file = chxj_cookie_db_lock(r);
- if (file == NULL) {
+ if (! file) {
ERR(r, "mod_chxj: Can't lock cookie db");
goto on_error0;
}
unsigned char hex1byte;
unsigned char hex2byte;
- if (!ee->imode) {
+ if (! ee->imode) {
DBG(r, "emoji->imode is NULL");
continue;
}
" bgcolor=\"",
value,
"\"",
- NULL);
+ NULL);
}
else
if ((*name == 't' || *name == 'T') && strcasecmp(name, "text") == 0) {