From 2a5ff893b7d0a5acbf249cc4622d7df2b16a68a5 Mon Sep 17 00:00:00 2001 From: Uriel Date: Fri, 15 Jun 2007 06:33:49 +0200 Subject: [PATCH] Make html filtering hack case insensitive --- bin/controller.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/controller.rc b/bin/controller.rc index 8ec298c..2f2043f 100755 --- a/bin/controller.rc +++ b/bin/controller.rc @@ -87,7 +87,7 @@ fn genbody { if not if ( test -f $body.tpl ) template.awk $body.tpl | rc $rcargs if not if ( test -f $body.html ) - cat $body.html | /bin/sed '0,//d; /<\/body>/,$d' + cat $body.html | /bin/sed '0,/<[Bb][Oo][Dd][Yy][^>]*>/d; /<\/[Bb][Oo][Dd][Yy]>/,$d' if not if (~ $body *.html && test -f $body ) cat $body | /bin/sed -i '0,/]*>/d;/<\/body>/,$d' if not if ( ~ $body */[bB]log/index */[bB]log//index && ~ $#blogDirs 0 )