From 339a7a5b4da9f45e19653332a277de3e9933a34a Mon Sep 17 00:00:00 2001 From: Uriel Date: Tue, 14 Oct 2008 01:40:20 +0200 Subject: [PATCH] Minnor code format and comment cleanups, remove duplicated code --- bin/controller.rc | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/bin/controller.rc b/bin/controller.rc index fa4c7fd..0e051dd 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -117,17 +117,17 @@ fn dir_listing_handler { d = `{basename -d $1} echo '

' `{echo $d|sed -e 's,.*//,,g' -e 's,/$,,' -e 's,/, / ,g' } '

' echo '' } -fn 404_handler { template `{get_lib_file 404.tpl } } +fn 404_handler { template `{ get_lib_file 404.tpl } } fn blog_dir_handler { blogDirs = $* if (! ~ $blogTitle '') - echo '

'$"blogTitle'

' #" stupid vim syntax highlighting ;P + echo '

'$"blogTitle'

' echo '
(rss feed)
' @@ -139,17 +139,13 @@ fn blog_dir_handler { } fn blog_post_handler { - gen_blog_post_title $1 | $formatter $formatter < $1 } -fn quote_html { - sed 's//\>/g' -} fn debug_handler { echo '
'
-    env | quote_html
+    env | escape_html
     echo ---------------------
     umask
     echo '
'