Package: dwww
Version: 1.9.28
Severity: minor
Tags: patch

If dwww uses the GET method instead of POST in its HTML forms, it can be used 
with webfs (a lightweight HTTP daemon that does not support CGI POST, only GET) 
without any loss of functionality. In addition, using GET produces re-usable 
URLs that can be bookmarked for later use and/or shared with others. I have 
included a patch below to make the necessary changes:

--- dwww-1.9.28/lib/dwww-find.start     2005-03-24 11:11:25.000000000 +1100
+++ patched-dwww/lib/dwww-find.start    2006-03-10 03:08:34.368902870 +1100
@@ -10,7 +10,7 @@
 <small><a href="/dwww/">dwww Home</a></small>
 <br>
 <hr>
-<form method="POST" action="/cgi-bin/dwww">
+<form method="get" action="/cgi-bin/dwww">
     <input name="search" size="30" value="%VALUE%">
     <input type="submit" name="programsubmit" value="Search">
 <br>
--- dwww-1.9.28/lib/dwww.man.template   2005-03-24 11:11:25.000000000 +1100
+++ patched-dwww/lib/dwww.man.template  2006-03-10 03:08:41.884709492 +1100
@@ -11,7 +11,7 @@
 <br>
 <hr>

-<form method="POST" action="/cgi-bin/dwww">
+<form method="get" action="/cgi-bin/dwww">
     <input name="search" size="30">
     <input type="submit" name="programsubmit" value="Search">
 <br>
--- dwww-1.9.28/lib/dwww.template       2005-06-06 00:11:14.000000000 +1000
+++ patched-dwww/lib/dwww.template      2006-03-10 03:08:48.992526610 +1100
@@ -27,7 +27,7 @@
 <hr />


-<form method="post" action="/cgi-bin/dwww" id="docsearch">
+<form method="get" action="/cgi-bin/dwww" id="docsearch">
 <p>
 <b>Find documentation:</b><br />
 <input name="search" id="searchfield" size="50" tabindex="0" />
--- dwww-1.9.28/lib/man-begins-with.start       2005-03-24 11:11:25.000000000 
+1100
+++ patched-dwww/lib/man-begins-with.start      2006-03-10 03:08:56.732327468 
+1100
@@ -13,7 +13,7 @@
 </small>
 <br>
 <hr>
-<form method="POST" action="/cgi-bin/dwww">
+<form method="get" action="/cgi-bin/dwww">
     <input name="search" size="30">
     <input type="submit" name="programsubmit" value="Search">
 <br>
--- dwww-1.9.28/lib/man-index.start     2005-03-24 11:11:25.000000000 +1100
+++ patched-dwww/lib/man-index.start    2006-03-10 03:09:11.183955634 +1100
@@ -11,7 +11,7 @@
 <br>
 <hr>

-<form method="POST" action="/cgi-bin/dwww">
+<form method="get" action="/cgi-bin/dwww">
     <input name="search" size="30">
     <input type="submit" name="programsubmit" value="Search">
 <br>
--- dwww-1.9.28/lib/man-in-section.start        2005-04-06 09:40:16.000000000 
+1000
+++ patched-dwww/lib/man-in-section.start       2006-03-10 03:09:18.415769562 
+1100
@@ -13,7 +13,7 @@
 <br>
 <hr>

-<form method="POST" action="/cgi-bin/dwww">
+<form method="get" action="/cgi-bin/dwww">
     <input name="search" size="30">
     <input type="submit" name="programsubmit" value="Search">
 <br>
--- dwww-1.9.28/lib/menu.all.start      2005-04-07 07:28:07.000000000 +1000
+++ patched-dwww/lib/menu.all.start     2006-03-10 03:09:24.251619408 +1100
@@ -10,7 +10,7 @@
 <small><a href="/dwww/">dwww Home</a> | <a href="/dwww/menu/">Each section in 
separate page</a></small>
 <br>
 <hr>
-<form method="POST" action="/cgi-bin/dwww">
+<form method="get" action="/cgi-bin/dwww">
     <input name="search" size="30">
     <input type="submit" name="programsubmit" value="Search">
 <br>
--- dwww-1.9.28/lib/menu.single.start   2005-04-07 07:28:07.000000000 +1000
+++ patched-dwww/lib/menu.single.start  2006-03-10 03:09:29.283489940 +1100
@@ -10,7 +10,7 @@
 <small><a href="/dwww/">dwww Home</a> | <a href="/dwww/menu/all.html">All 
sections in one page</a></small>
 <br>
 <hr>
-<form method="POST" action="/cgi-bin/dwww">
+<form method="get" action="/cgi-bin/dwww">
     <input name="search" size="30">
     <input type="submit" name="programsubmit" value="Search">
 <br>


Please consider adding this patch to the next release of dwww.
Thanks, Benjamin.s, Benjamin.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to