Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3bcbcdace5 |
No files matched your search
@@ -1,17 +1,3 @@
|
||||
2003-10-17 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
Released tinyproxy 1.6.2 (2003-10-17)
|
||||
|
||||
* Makefile.am:
|
||||
Removed a redundant "mkdir" command, since the $(mkinstalldirs)
|
||||
command handles it correctly.
|
||||
|
||||
2003-10-16 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
* src/filter.c (filter_init):
|
||||
Fixed up the comment handling code. Closes bug 822226
|
||||
[https://sourceforge.net/tracker/index.php?func=detail&aid=822226&group_id=2632&atid=102632]
|
||||
|
||||
2003-08-06 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
Released tinyproxy 1.6.1 (2003-08-06)
|
||||
|
||||
@@ -40,6 +40,7 @@ tinyproxy-configure-file:
|
||||
tinyproxy-html-files:
|
||||
$(mkinstalldirs) $(DESTDIR)$(datadir)/tinyproxy
|
||||
|
||||
test -d $(datadir)/tinyproxy || mkdir $(datadir)/tinyproxy
|
||||
for file in debug default stats; do \
|
||||
$(INSTALL) -m 644 $(srcdir)/doc/$$file.html $(DESTDIR)$(datadir)/tinyproxy/$$file.html.dist ; \
|
||||
test -f $(DESTDIR)$(datadir)/tinyproxy/$$file.html || \
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
dnl $Id: configure.ac,v 2.60.2.2 2003-10-17 15:39:23 rjkaes Exp $
|
||||
dnl $Id: configure.ac,v 2.60.2.1 2003-08-06 20:52:08 rjkaes Exp $
|
||||
|
||||
dnl Devlopers, please strive to achieve this order:
|
||||
dnl
|
||||
@@ -14,7 +14,7 @@ dnl 8. System services
|
||||
dnl
|
||||
dnl Read the Autoconf manual for details.
|
||||
|
||||
AC_INIT([tinyproxy], [1.6.2], [rjkaes@users.sourceforge.net])
|
||||
AC_INIT([tinyproxy], [1.6.1], [rjkaes@users.sourceforge.net])
|
||||
AC_CONFIG_SRCDIR([src/tinyproxy.c])
|
||||
AC_PREREQ(2.52)
|
||||
|
||||
|
||||
+19
-30
@@ -1,4 +1,4 @@
|
||||
/* $Id: filter.c,v 1.16.2.1 2003-10-16 21:19:09 rjkaes Exp $
|
||||
/* $Id: filter.c,v 1.16 2003-01-27 17:57:39 rjkaes Exp $
|
||||
*
|
||||
* Copyright (c) 1999 George Talusan (gstalusan@uwaterloo.ca)
|
||||
* Copyright (c) 2002 James E. Flemer (jflemer@acm.jhu.edu)
|
||||
@@ -49,7 +49,7 @@ filter_init(void)
|
||||
FILE *fd;
|
||||
struct filter_list *p;
|
||||
char buf[FILTER_BUFFER_LEN];
|
||||
char *s;
|
||||
char *s, *t;
|
||||
int cflags;
|
||||
|
||||
if (!fl && !already_init) {
|
||||
@@ -64,35 +64,7 @@ filter_init(void)
|
||||
cflags |= REG_ICASE;
|
||||
|
||||
while (fgets(buf, FILTER_BUFFER_LEN, fd)) {
|
||||
/*
|
||||
* Remove any trailing white space and
|
||||
* comments.
|
||||
*/
|
||||
s = buf;
|
||||
while (*s) {
|
||||
if (isspace((unsigned char)*s)) break;
|
||||
if (*s == '#') {
|
||||
/*
|
||||
* If the '#' char is preceeded by
|
||||
* an escape, it's not a comment
|
||||
* string.
|
||||
*/
|
||||
if (s == buf || *(s - 1) != '\\')
|
||||
break;
|
||||
}
|
||||
++s;
|
||||
}
|
||||
*s = '\0';
|
||||
|
||||
/* skip leading whitespace */
|
||||
s = buf;
|
||||
while (*s && isspace((unsigned char)*s))
|
||||
s++;
|
||||
|
||||
/* skip blank lines and comments */
|
||||
if (*s == '\0')
|
||||
continue;
|
||||
|
||||
if (!p) /* head of list */
|
||||
fl = p =
|
||||
safecalloc(1,
|
||||
@@ -106,6 +78,23 @@ filter_init(void)
|
||||
p = p->next;
|
||||
}
|
||||
|
||||
/* strip trailing whitespace & comments */
|
||||
t = s;
|
||||
while (*s && *s != '#') {
|
||||
if (!isspace((unsigned char)*(s++)))
|
||||
t = s;
|
||||
}
|
||||
*t = '\0';
|
||||
|
||||
/* skip leading whitespace */
|
||||
s = buf;
|
||||
while (*s && isspace((unsigned char)*s))
|
||||
s++;
|
||||
|
||||
/* skip blank lines and comments */
|
||||
if (*s == '\0')
|
||||
continue;
|
||||
|
||||
p->pat = safestrdup(s);
|
||||
p->cpat = safemalloc(sizeof(regex_t));
|
||||
if ((err = regcomp(p->cpat, p->pat, cflags)) != 0) {
|
||||
|
||||
Reference in new issue
Block a user