summaryrefslogtreecommitdiff
path: root/www/mnogosearch/files
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2002-07-02 04:44:35 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2002-07-02 04:44:35 +0000
commit2f4048b50d4770265a83a69fd9437d06bb2bff67 (patch)
treeb152492b29cefd7797022f2e96408617c0d4ad1c /www/mnogosearch/files
parentUpdate to 1.23.r9 (diff)
Upgrade to 3.1.20
Notes
Notes: svn path=/head/; revision=62306
Diffstat (limited to 'www/mnogosearch/files')
-rw-r--r--www/mnogosearch/files/patch-ac11
-rw-r--r--www/mnogosearch/files/spelld.sh-dist1
2 files changed, 1 insertions, 11 deletions
diff --git a/www/mnogosearch/files/patch-ac b/www/mnogosearch/files/patch-ac
index 673785c743f0..65c6f2ac627d 100644
--- a/www/mnogosearch/files/patch-ac
+++ b/www/mnogosearch/files/patch-ac
@@ -9,14 +9,3 @@
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/files/spelld.sh-dist b/www/mnogosearch/files/spelld.sh-dist
index 1f10515ace47..7b9612b68bb5 100644
--- a/www/mnogosearch/files/spelld.sh-dist
+++ b/www/mnogosearch/files/spelld.sh-dist
@@ -11,6 +11,7 @@ start)
if [ -x ${PREFIX}/sbin/spelld ]; then
# Uncomment to disallow access from outside
# /sbin/ipfw -q add 7001 deny tcp from any to any 7001
+ rm -f /var/mnogosearch/spelld.pid
su -f -m www -c "exec ${PREFIX}/sbin/spelld &" > /dev/null 2>&1 && echo -n ' spelld'
fi
;;