*BSD News Article 78495


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!news.vbc.net!garlic.com!news.scruz.net!noos.hooked.net!www.nntp.primenet.com!nntp.primenet.com!cs.utexas.edu!math.ohio-state.edu!jussieu.fr!univ-lyon1.fr!in2p3.fr!swidir.switch.ch!01-newsfeed.univie.ac.at!Austria.EU.net!nntp.magwien.gv.at!usenet
From: Peter Gallasch <gal@adv.magwien.gv.at>
Newsgroups: comp.unix.bsd.bsdi.misc
Subject: How to patch bsdi-man 1.2
Date: Tue, 17 Sep 1996 10:23:38 +0200
Organization: MA14 ADV Gemeinde Wien
Lines: 83
Message-ID: <323E600A.446B9B3D@adv.magwien.gv.at>
NNTP-Posting-Host: pirx.adv.magwien.gv.at
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Mailer: Mozilla 3.0 (X11; I; BSD/OS 2.0 i386)

I found a bug while working with Bsd/OS bsdi-man v 1.2. It produces
query-string like:
''.../cgi-bin/bsdi-man?proto=1.0&query=whatever§ion=1&apropos=0''
(The char before ''ion'' is a section-char). The error is, that
''ampersand''sect stands for the section-char. What I did is to change
the name for the parameter ''section'' to ''sction''. As I looked at
http://www.bsdi.com/bsdi-man/, I saw that they changed it to
''msection''. Below are the changes I made:

82c82
< 	$section = $form{'sction'};
---
> 	$section = $form{'section'};
165c165
< 	    "&sction=", &encode_url($section), "&apropos=0\">",
---
> 	    "&section=", &encode_url($section), "&apropos=0\">",
254c254
<     return "<A HREF=\"$BASE?proto=$protocol&query=$link&sction=$section&apropos=0\">$matched</A>";
---
>     return "<A HREF=\"$BASE?proto=$protocol&query=$link&section=$section&apropos=0\">$matched</A>";
372,380c372,380
< <A HREF="$BASE?proto=$protocol&query=%281&sction=&apropos=1&title=Section%201%20Index">1</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%282&sction=&apropos=1&title=Section%202%20Index">2</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%283%29&sction=&apropos=1&title=Section%203%20Index">3</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%283X11&sction=&apropos=1&title=Section%203X11%20Index">3X11</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%284&sction=&apropos=1&title=Section%204%20Index">4</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%285&sction=&apropos=1&title=Section%205%20Index">5</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%286&sction=&apropos=1&title=Section%206%20Index">6</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%287&sction=&apropos=1&title=Section%207%20Index">7</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=%288&sction=&apropos=1&title=Section%208%20Index">8</A>
---
> <A HREF="$BASE?proto=$protocol&query=%281&section=&apropos=1&title=Section%201%20Index">1</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%282&section=&apropos=1&title=Section%202%20Index">2</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%283%29&section=&apropos=1&title=Section%203%20Index">3</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%283X11&section=&apropos=1&title=Section%203X11%20Index">3X11</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%284&section=&apropos=1&title=Section%204%20Index">4</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%285&section=&apropos=1&title=Section%205%20Index">5</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%286&section=&apropos=1&title=Section%206%20Index">6</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%287&section=&apropos=1&title=Section%207%20Index">7</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=%288&section=&apropos=1&title=Section%208%20Index">8</A>
383,388c383,388
< <A HREF="$BASE?proto=$protocol&query=intro&sction=1&apropos=0&title=Introduction%20Section%201">intro(1)</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=intro&sction=2&apropos=0&title=Introduction%20Section%202">intro(2)</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=intro&sction=3&apropos=0&title=Introduction%20Section%203">intro(3)</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=intro&sction=4&apropos=0&title=Introduction%20Section%204">intro(4)</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=intro&sction=7&apropos=0&title=Introduction%20Section%207">intro(7)</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=intro&sction=8&apropos=0&title=Introduction%20Section%208">intro(8)</A>
---
> <A HREF="$BASE?proto=$protocol&query=intro&section=1&apropos=0&title=Introduction%20Section%201">intro(1)</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=intro&section=2&apropos=0&title=Introduction%20Section%202">intro(2)</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=intro&section=3&apropos=0&title=Introduction%20Section%203">intro(3)</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=intro&section=4&apropos=0&title=Introduction%20Section%204">intro(4)</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=intro&section=7&apropos=0&title=Introduction%20Section%207">intro(7)</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=intro&section=8&apropos=0&title=Introduction%20Section%208">intro(8)</A>
391,396c391,396
< <A HREF="$BASE?proto=$protocol&query=network&sction=&apropos=1&title=Quick%20Ref%20Networking">Networking</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=nfs&sction=&apropos=1&title=Quick%20Ref%20NFS">NFS</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=mail&sction=&apropos=1&title=Quick%20Ref%20Mail">Mail</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=languag&sction=&apropos=1&title=Quick%20Ref%20Languages">Languages</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=sco%20(1)&sction=&apropos=1&title=Quick%20Ref%20SCO%20Emulation">SCO Emulation</A> &#164;
< <A HREF="$BASE?proto=$protocol&query=dos&sction=&apropos=1&title=Quick%20Ref%20DOS">DOS</A>
---
> <A HREF="$BASE?proto=$protocol&query=network&section=&apropos=1&title=Quick%20Ref%20Networking">Networking</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=nfs&section=&apropos=1&title=Quick%20Ref%20NFS">NFS</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=mail&section=&apropos=1&title=Quick%20Ref%20Mail">Mail</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=languag&section=&apropos=1&title=Quick%20Ref%20Languages">Languages</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=sco%20(1)&section=&apropos=1&title=Quick%20Ref%20SCO%20Emulation">SCO Emulation</A> &#164;
> <A HREF="$BASE?proto=$protocol&query=dos&section=&apropos=1&title=Quick%20Ref%20DOS">DOS</A>
424c424
< <INPUT NAME="apropos" VALUE="0" TYPE="RADIO"$astring> <A HREF="$BASE?proto=$protocol&query=man&sction=1&apropos=0">Man</A> Page Lookup
---
> <INPUT NAME="apropos" VALUE="0" TYPE="RADIO"$astring> <A HREF="$BASE?proto=$protocol&query=man&section=1&apropos=0">Man</A> Page Lookup
441c441
< <INPUT NAME="apropos" VALUE="1" TYPE="RADIO"$bstring> <A HREF="$BASE?proto=$protocol&query=apropos&sction=1&apropos=0">Apropos</A> Keyword Search (all sections)
---
> <INPUT NAME="apropos" VALUE="1" TYPE="RADIO"$bstring> <A HREF="$BASE?proto=$protocol&query=apropos&section=1&apropos=0">Apropos</A> Keyword Search (all sections)

-- 
Peter Gallasch  mailto:gal@adv.magwien.gv.at   ___   __o
MA14-ADV Rathausstr. 1, A-1082 Wien, Austria  ____ _'\<,_
phone +43-1-4000-98633   fax +43-1-4000-7141      (*)/ (*)