Forum

URL toolkit's Call method does not work?

Anton Berezin
15 March 2010, 21:02
Hi,

Hiawatha version: tested with 6.19 and 7.0
Operating System: FreeBSD 7.2

A fragment of the configuration file:

UrlToolkit {
ToolkitID = sanitize
Match /htpasswd.* DenyAccess
}

UrlToolkit {
ToolkitID = simple
Call sanitize
}


Let;s test:

> wigwam -t sanitize
Reading hiawatha.conf

===[ URL toolkit tester
Use empty input to leave the program.

url: /htpasswd
old: (403 Forbidden)

> wigwam -t simple
Reading hiawatha.conf

===[ URL toolkit tester
Use empty input to leave the program.

url: /htpasswd
old: /htpasswd


What am I doing wrong, if anything? Needless to say, the behavior of hiawatha itself matches what wigwam tells me.
Hugo Leisink
15 March 2010, 21:32
That's a bug. Will be fixed in 7.1.

Change lines 496 and 497 in toolkit.c from
if (result == UT_EXIT) {
return UT_EXIT;

to
if ((result == UT_DENY_ACCESS) || (result == UT_EXIT) || (result == UT_REDIRECT)) {
return result;
Anton Berezin
15 March 2010, 21:49
Whee! Works, thanks.
This topic has been closed.