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:
Steve Pinkham 2010-03-20 11:54:06 -04:00
parent ca78a8e8f7
commit 908118790d
4 changed files with 7 additions and 4 deletions

View File

@ -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:
--------------

View File

@ -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] == ' '))

View File

@ -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 */

View File

@ -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) {