ref: 94dfc1172c310c517f18229f4696ebd4741a2f78
parent: 74499c1b9dbf1cd8c8ba6d50a195b20f0a6ace37
author: uriel <[email protected]>
date: Tue Jul 8 20:55:45 EDT 2008
Minnor style/debug improvements
--- a/bin/controller.rc
+++ b/bin/controller.rc
@@ -125,7 +125,7 @@
if not if(~ $#blogDirs 0) {
#echo 'Status: 404 Not Found\n\n' # should go before starting to print body
template.awk inc/404.tpl | rc $rcargs
- dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER^' - '^$HTTP_USER_AGENT
+ dprint 'NOT FOUND: '$SERVER_NAME^$REQUEST_URI^' - '^$"HTTP_REFERER^' - '^$"HTTP_USER_AGENT
}
if(! ~ $#blogDirs 0) {
@@ -150,9 +150,9 @@
echo $* >[1=2]
}
-if(! ~ $#debug 0) {
- echo $SERVER_NAME^'/'^$REQUEST_URI - >[1=2]
-}
+if(! ~ $#debug 0)
+ dprint $SERVER_NAME^'/'^$REQUEST_URI^' - '^$"HTTP_USER_AGENT
+
if (! ~ $args '') {
#title=$args($#args)