1.04b - Workaround for *BSD systems with malloc J or Z options set by default. - again
- A minor tweak to reject certain not-quite-URLs extracted from JS.
This commit is contained in:
parent
ca78a8e8f7
commit
908118790d
|
@ -1,9 +1,11 @@
|
|||
Version 1.03b:
|
||||
Version 1.04b:
|
||||
--------------
|
||||
|
||||
- Workaround for *BSD systems with malloc J or Z options set
|
||||
by default.
|
||||
|
||||
- A minor tweak to reject certain not-quite-URLs extracted from JS.
|
||||
|
||||
Version 1.01b:
|
||||
--------------
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ static void test_add_link(u8* str, struct http_request* ref,
|
|||
/* Don't add links that look like they came from JS code with fragmented HTML
|
||||
snippets, etc. */
|
||||
|
||||
if (!sure && (strchr("()\"' +,^", *str) ||
|
||||
if (!sure && (strchr("()\"' +,^:", *str) ||
|
||||
(*str == '/' && strchr("()\"' +,^", str[1])))) return;
|
||||
|
||||
if ((str[0] == '\'' || str[0] == '"') && (str[1] == '+' || str[1] == ' '))
|
||||
|
|
2
config.h
2
config.h
|
@ -23,7 +23,7 @@
|
|||
#ifndef _HAVE_CONFIG_H
|
||||
#define _HAVE_CONFIG_H
|
||||
|
||||
#define VERSION "1.03b"
|
||||
#define VERSION "1.04b"
|
||||
|
||||
#define USE_COLOR 1 /* Use terminal colors */
|
||||
|
||||
|
|
|
@ -49,7 +49,8 @@ u32 __AD_trk_cnt[ALLOC_BUCKETS];
|
|||
|
||||
|
||||
/* *BSD where J or Z is set are incompatible with our allocator. */
|
||||
char* malloc_options = "jz";
|
||||
const char* malloc_options = "jz";
|
||||
const char* _malloc_options = "jz";
|
||||
|
||||
|
||||
void usage(char* argv0) {
|
||||
|
|
Loading…
Reference in New Issue