aboutsummaryrefslogtreecommitdiff
path: root/www/mnogosearch31
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2001-04-20 08:48:51 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2001-04-20 08:48:51 +0000
commit68c3bfdbb2b4363e3c6c009a7704c130c8736cf2 (patch)
treea2cf98ae5188da36790b3c52fb9f6397ed7a2c84 /www/mnogosearch31
parenta1f6a30d25406d4bd8358e490c2821b570faeee9 (diff)
downloadports-68c3bfdbb2b4363e3c6c009a7704c130c8736cf2.tar.gz
ports-68c3bfdbb2b4363e3c6c009a7704c130c8736cf2.zip
Notes
Diffstat (limited to 'www/mnogosearch31')
-rw-r--r--www/mnogosearch31/Makefile2
-rw-r--r--www/mnogosearch31/files/patch-ac25
2 files changed, 26 insertions, 1 deletions
diff --git a/www/mnogosearch31/Makefile b/www/mnogosearch31/Makefile
index f661ee800663..656faaa59d99 100644
--- a/www/mnogosearch31/Makefile
+++ b/www/mnogosearch31/Makefile
@@ -7,7 +7,7 @@
PORTNAME= mnogosearch
PORTVERSION= 3.1.12
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www databases
MASTER_SITES= http://search.mnogo.ru/Download/
diff --git a/www/mnogosearch31/files/patch-ac b/www/mnogosearch31/files/patch-ac
new file mode 100644
index 000000000000..68f8816a275e
--- /dev/null
+++ b/www/mnogosearch31/files/patch-ac
@@ -0,0 +1,25 @@
+--- src/search.c.old Wed Feb 28 15:28:10 2001
++++ src/search.c Thu Apr 19 18:02:10 2001
+@@ -1269,7 +1269,8 @@
+ strcpy(template,env);
+
+ if((env=getenv("QUERY_STRING"))){
+- strcpy(query_string,env);
++ strncpy(query_string,env,UDMSTRSIZ-1);
++ query_string[UDMSTRSIZ-1] = '\0';
+ if((env=getenv("REDIRECT_STATUS"))){
+
+ /* Check Apache internal redirect */
+@@ -1316,8 +1317,10 @@
+ /* or under server which do not */
+ /* pass an empty QUERY_STRING var */
+
+- if(argv[1])
+- sprintf(query_string,"q=%s",argv[1]);
++ if(argv[1]) {
++ strcpy(query_string, "q=");
++ strncat(query_string, argv[1], UDMSTRSIZ-1-2);
++ }
+ if(!template[0])
+ sprintf(template,"%s/%s", UDM_CONF_DIR,"search.htm");
+ }