NT 4.0 "extra slash" problem

Post Reply
User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

NT 4.0 "extra slash" problem

Post by Thunderstone »




I just installed webinator (GW lists the release as 19980302) on my Windows
NT 4.0 box. The web server is working properly and my initial results were
pretty good. HOWEVER! There is a problem.

I use the default search form:


http://hostname.com/cgi-bin/texis.exe/webinator/search/

And enter my search and it works *great*. Except for one little thing....
it adds another / to the end of the URL in the browser, which then says:


http://hostname.com/cgi-bin/texis.exe/w ... r/search//

So then I search again, and I get this:

--beginquote--
Texis Web Script (Vortex) Copyright © 1996-1998 Thunderstone - EPI, Inc.
Free Webinator Version 2.1.888855780 of Mar 2, 1998

Error

002 /webinator/search/webinator/search/: Can't open source file
e:\html\webinator\search\webinator\search: No such file or
directory in the function compilefile
--endquote--

and the URL in the browser is now:


http://dyn161.ezlink.com/cgi-bin/texis. ... ator/searc
h//

Obviously this has SOMETHING to do with a trailing slash, but for the life
me, I can't figure out *what*, or how to get it to NOT tack on that extra
trailing slash.

Any help is appreciated!

-Ray

--
Michael Ray Randolph -- rayr@ezlink.com -- SP4 w/Clam Cluster
Unemployed German Psychiatrist, Private Investigator, Prozac abuser, and
rogue agent aiding in the suppression of silly cults. Member: Cult of the
Anti-Cult.
$cientology KILLS T-shirts http://www.scientology-kills.net/t-shirt/



User avatar
Thunderstone
Site Admin
Posts: 2504
Joined: Wed Jun 07, 2000 6:20 pm

NT 4.0 "extra slash" problem

Post by Thunderstone »






Your web server is setting up the $SCRIPT_NAME and $PATH_TRANSLATED
environment variables incorrectly. The trailing slash Webinator puts
on its URL is left in $PATH_INFO, but is stripped from $PATH_TRANSLATED;
this confuses Webinator and causes an extra slash in the URL.
Additionally, when this double-slashed URL is submitted, the server
sets up $SCRIPT_NAME incorrectly: it leaves $PATH_INFO attached to it.
Webinator combines $SCRIPT_NAME and $PATH_INFO to form its URL; thus
$PATH_INFO (/webinator/search) appears twice in the URL.

Install a fixed version of Apache or another server that sets up these
variables correctly.

-Kai


Kai Getrost | Thunderstone Software - EPI, Inc.


Post Reply