]> git.sesse.net Git - ccbs/blobdiff - html/ccbs.pm
Switch to XHTML MIME type for now, fix a validation error or two.
[ccbs] / html / ccbs.pm
index 7087d5f29742c594e376416ff665a8a620a3449f..f09996a1935ca1ef345d7421462cd166456b51cd 100755 (executable)
@@ -8,7 +8,14 @@ use warnings;
 our $ccbs_dbdebug = 0;
        
 sub print_header {
-       print CGI::header(-type=>'text/html; charset=utf-8');
+       print CGI::header(-type=>'application/xhtml+xml; charset=utf-8');
+}
+sub print_see_other {
+       my $location = shift;
+
+       print CGI::header(-status=>'303 See other',
+                         -location=>'http://ccbs.sesse.net/' . $location,
+                         -type=>'text/html; charset=utf-8');
 }
 
 sub db_connect {