ref: 44a318e2c917ab8065b256670f474cb71f9ee0b3
parent: b22c5073d4e7f3ea1729c9f6d6f04e18a57c57bd
author: uriel <[email protected]>
date: Sat Dec 20 08:31:19 EST 2008
Reorg debug printouts a bit.
--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -225,10 +225,6 @@
uri=`{echo -n $REQUEST_URI | sed 's/\?.*//; s/'^$forbidden_uri_chars^'//g; s/\.\.*/./g; 1q'}
ifs='/' { args=`{echo -n $uri} }
-
-if(! ~ $#debug 0)
- dprint ' ' $SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_USER_AGENT
-
# Hack: preload post data so we can access it from templates where cgi's stdin is not accesible
if(~ $REQUEST_METHOD POST) {
get_post_args
@@ -290,7 +286,8 @@
select_handler
-dprint $handler
+if(! ~ $#debug 0)
+ dprint ' '$"SERVER_NAME^$"REQUEST_URI' - '$"HTTP_USER_AGENT' - '$"REQUEST_METHOD' - '$"handler
# Template/body selection
master_template=`{get_lib_file $master_template}