#3 mod_blosxom 0.05: bad xhtml in link to XML

open
nobody
None
5
2003-03-30
2003-03-30
No

mod_blosxom 0.05 includes a built in template for the
HTML output which includes a link in the [head] section
to the XML. Unfortunately there is a typ o in this
link which will make it hard for a browser to
understand. This patch fixes the typo (removes the
duplicated "type=" bit):

-=- cut here -=-
--- mod_blosxom.c-working-2003-03-30 Sun Mar 30
23:57:42 2003
+++ mod_blosxom.c Mon Mar 31 00:27:53 2003
@@ -88,7 +88,7 @@
#define MOD_BLOSXOM_STRING_VERSION "mod_blosxom/0.05"
/*
* Default HTML template */
-#define TEXT_HTML_HEAD "<html><head><link
rel=\"alternate\" type=\"type=\"application/rss+xml\"
title=\"RSS\" href=\"$url/xml\"
/><title>$blog_title</title></head><body><center><font
size=\"+3\">$blog_title</font></center><p />"
+#define TEXT_HTML_HEAD "<html><head><link
rel=\"alternate\" type=\"application/rss+xml\"
title=\"RSS\" href=\"$url/xml\"
/><title>$blog_title</title></head><body><center><font
size=\"+3\">$blog_title</font></center><p />"

#define TEXT_HTML_STORY "<p class=\"blosxomEntry\"><a
name=\"$fn\"><span
class=\"blosxomTitle\"><b>$title</b></span></a><br
/><span class=\"blosxomBody\">$body</span><br /><span
class=\"blosxomTime\">Posted at $ti</span> <a
href=\"$url/$yr/$mo/$da#$fn\">#</a> <a
href=\"http://www.google.com/search?q=$title\">G</a></p>\n"

-=- cut her e-=-

(The core change is 'type=\"type=\"application...'
becomes "type=\"application....'.

Ewen

Discussion


Log in to post a comment.