Fossil SCM

HTML-escape text content in the RSS feed. Ticket [83e9e0016b6].

drh 2010-01-22 16:36 trunk
Commit 825a2c7c6400a0c41d2d6a08037bfb6b3c8d4188
1 file changed +5 -5
+5 -5
--- src/rss.c
+++ src/rss.c
@@ -73,13 +73,13 @@
7373
zPubDate = cgi_rfc822_datestamp(time(NULL));
7474
7575
@ <?xml version="1.0"?>
7676
@ <rss version="2.0">
7777
@ <channel>
78
- @ <title>%s(zProjectName)</title>
78
+ @ <title>%h(zProjectName)</title>
7979
@ <link>%s(g.zBaseURL)</link>
80
- @ <description>%s(zProjectDescr)</description>
80
+ @ <description>%h(zProjectDescr)</description>
8181
@ <pubDate>%s(zPubDate)</pubDate>
8282
@ <generator>Fossil version %s(MANIFEST_VERSION) %s(MANIFEST_DATE)</generator>
8383
db_prepare(&q, blob_buffer(&bSQL));
8484
blob_reset( &bSQL );
8585
while( db_step(&q)==SQLITE_ROW && nLine<=20 ){
@@ -102,15 +102,15 @@
102102
}else if( nChild>1 ){
103103
zPrefix = "*FORK* ";
104104
}
105105
106106
@ <item>
107
- @ <title>%s(zPrefix)%s(zCom)</title>
107
+ @ <title>%h(zPrefix)%s(zCom)</title>
108108
@ <link>%s(g.zBaseURL)/ci/%s(zId)</link>
109
- @ <description>%s(zPrefix)%s(zCom)</description>
109
+ @ <description>%s(zPrefix)%h(zCom)</description>
110110
@ <pubDate>%s(zDate)</pubDate>
111
- @ <author>%s(zAuthor)</author>
111
+ @ <author>%h(zAuthor)</author>
112112
@ <guid>%s(g.zBaseURL)/ci/%s(zId)</guid>
113113
@ </item>
114114
free(zDate);
115115
nLine++;
116116
}
117117
--- src/rss.c
+++ src/rss.c
@@ -73,13 +73,13 @@
73 zPubDate = cgi_rfc822_datestamp(time(NULL));
74
75 @ <?xml version="1.0"?>
76 @ <rss version="2.0">
77 @ <channel>
78 @ <title>%s(zProjectName)</title>
79 @ <link>%s(g.zBaseURL)</link>
80 @ <description>%s(zProjectDescr)</description>
81 @ <pubDate>%s(zPubDate)</pubDate>
82 @ <generator>Fossil version %s(MANIFEST_VERSION) %s(MANIFEST_DATE)</generator>
83 db_prepare(&q, blob_buffer(&bSQL));
84 blob_reset( &bSQL );
85 while( db_step(&q)==SQLITE_ROW && nLine<=20 ){
@@ -102,15 +102,15 @@
102 }else if( nChild>1 ){
103 zPrefix = "*FORK* ";
104 }
105
106 @ <item>
107 @ <title>%s(zPrefix)%s(zCom)</title>
108 @ <link>%s(g.zBaseURL)/ci/%s(zId)</link>
109 @ <description>%s(zPrefix)%s(zCom)</description>
110 @ <pubDate>%s(zDate)</pubDate>
111 @ <author>%s(zAuthor)</author>
112 @ <guid>%s(g.zBaseURL)/ci/%s(zId)</guid>
113 @ </item>
114 free(zDate);
115 nLine++;
116 }
117
--- src/rss.c
+++ src/rss.c
@@ -73,13 +73,13 @@
73 zPubDate = cgi_rfc822_datestamp(time(NULL));
74
75 @ <?xml version="1.0"?>
76 @ <rss version="2.0">
77 @ <channel>
78 @ <title>%h(zProjectName)</title>
79 @ <link>%s(g.zBaseURL)</link>
80 @ <description>%h(zProjectDescr)</description>
81 @ <pubDate>%s(zPubDate)</pubDate>
82 @ <generator>Fossil version %s(MANIFEST_VERSION) %s(MANIFEST_DATE)</generator>
83 db_prepare(&q, blob_buffer(&bSQL));
84 blob_reset( &bSQL );
85 while( db_step(&q)==SQLITE_ROW && nLine<=20 ){
@@ -102,15 +102,15 @@
102 }else if( nChild>1 ){
103 zPrefix = "*FORK* ";
104 }
105
106 @ <item>
107 @ <title>%h(zPrefix)%s(zCom)</title>
108 @ <link>%s(g.zBaseURL)/ci/%s(zId)</link>
109 @ <description>%s(zPrefix)%h(zCom)</description>
110 @ <pubDate>%s(zDate)</pubDate>
111 @ <author>%h(zAuthor)</author>
112 @ <guid>%s(g.zBaseURL)/ci/%s(zId)</guid>
113 @ </item>
114 free(zDate);
115 nLine++;
116 }
117

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button