summaryrefslogtreecommitdiff
path: root/www/mnogosearch
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-05-15 08:52:48 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-05-15 08:52:48 +0000
commitf2079b3a0011233f0078e1b59df65b897862fd39 (patch)
tree28f34a7d8f1364cc18b7020463c89dadfe000e3f /www/mnogosearch
parentUpdate to patch 9.2zc. The new patches contain mostly fixes for (diff)
Fix query buffer overflow
Notes
Notes: svn path=/head/; revision=59153
Diffstat (limited to 'www/mnogosearch')
-rw-r--r--www/mnogosearch/Makefile6
-rw-r--r--www/mnogosearch/files/patch-ac17
-rw-r--r--www/mnogosearch/pkg-descr2
3 files changed, 18 insertions, 7 deletions
diff --git a/www/mnogosearch/Makefile b/www/mnogosearch/Makefile
index 7bb9ba745dd0..298d4f2fc98e 100644
--- a/www/mnogosearch/Makefile
+++ b/www/mnogosearch/Makefile
@@ -7,18 +7,18 @@
PORTNAME= mnogosearch
PORTVERSION= 3.1.19
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www databases
-MASTER_SITES= http://search.mnogo.ru/Download/
+MASTER_SITES= http://www.mnogosearch.org/Download/
MAINTAINER= ache@FreeBSD.org
MAN1= indexer.1
MAN5= indexer.conf.5
+USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
USE_GMAKE= yes
-GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-phrase \
--enable-shared \
--enable-freebsd-pthreads \
diff --git a/www/mnogosearch/files/patch-ac b/www/mnogosearch/files/patch-ac
index 1fbce5bd52ef..673785c743f0 100644
--- a/www/mnogosearch/files/patch-ac
+++ b/www/mnogosearch/files/patch-ac
@@ -1,6 +1,6 @@
---- src/search.c.bak Tue May 15 13:08:14 2001
-+++ src/search.c Fri May 18 16:22:44 2001
-@@ -1239,7 +1239,7 @@
+--- src/search.c.orig Tue Jun 26 12:55:17 2001
++++ src/search.c Wed May 15 11:29:07 2002
+@@ -1246,7 +1246,7 @@
int i;
time_t tclock;
tclock=time(0);
@@ -9,3 +9,14 @@
for(i=0;i<MAXRANDOM;i++)
Randoms[i]=0;
}
+@@ -1404,6 +1404,10 @@
+ if(!UDM_STRNCMP(token,"q=")){
+ char str[UDMSTRSIZ]="";
+ query_words=strdup(UdmUnescapeCGIQuery(str,token+2));
++ if (strlen(query_words) > 512) {
++ printf("<html><body>Query string too long!</body></html>\n");
++ return(0);
++ }
+ query_url_escaped=strdup(UdmEscapeURL(str,query_words));
+ query_form_escaped=UdmHtmlSpecialChars(query_words);
+ }else
diff --git a/www/mnogosearch/pkg-descr b/www/mnogosearch/pkg-descr
index 66b00bef7532..a8a72288e4a5 100644
--- a/www/mnogosearch/pkg-descr
+++ b/www/mnogosearch/pkg-descr
@@ -4,4 +4,4 @@ engines such as cooking recipies or searching newspaper articles.
Provides pre-built web search frontends in C (via CGI) and PHP.
-WWW: http://search.mnoGo.ru/
+WWW: http://www.mnogosearch.org/