diff options
Diffstat (limited to 'www/mnogosearch/files')
-rw-r--r-- | www/mnogosearch/files/patch-ac | 11 | ||||
-rw-r--r-- | www/mnogosearch/files/spelld.sh-dist | 1 |
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 ;; |