Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Fixed y=all arg for timeline.rss (broken in [cb651568fbfe6]) and renamed a shadowed variable, both problems reported in forum post d48f7f12656a291f. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
8903d1ebe079f091fb62aa9787ab1ba5 |
User & Date: | stephan 2022-06-25 08:22:34 |
Context
2022-06-25
| ||
17:31 | Update the built-in SQLite to the 3.39.0 release. ... (check-in: 720f0956 user: drh tags: trunk) | |
08:22 | Fixed y=all arg for timeline.rss (broken in [cb651568fbfe6]) and renamed a shadowed variable, both problems reported in forum post d48f7f12656a291f. ... (check-in: 8903d1eb user: stephan tags: trunk) | |
2022-06-24
| ||
05:40 | In the Windows application manifest, use generic placeholder values for the 'processorArchitecture' attributes of the 'assemblyIdentity' elements. This should enable Fossil to run on 64-bit systems without the WOW64 emulator installed, see Forum Post 9a3eaa6ad5 and following for the problem report and discussion. ... (check-in: 12ac6727 user: florian tags: trunk) | |
Changes
Changes to src/rss.c.
︙ | ︙ | |||
73 74 75 76 77 78 79 | login_check_credentials(); if( !g.perm.Read && !g.perm.RdTkt && !g.perm.RdWiki ){ return; } blob_zero(&bSQL); | | | | | | | | | 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | login_check_credentials(); if( !g.perm.Read && !g.perm.RdTkt && !g.perm.RdWiki ){ return; } blob_zero(&bSQL); blob_append_sql( &bSQL, "%s", zSQL1/*safe-for-%s*/ ); if( zType[0]!='a' ){ if( zType[0]=='c' && !g.perm.Read ) zType = "x"; if( zType[0]=='w' && !g.perm.RdWiki ) zType = "x"; if( zType[0]=='t' && !g.perm.RdTkt ) zType = "x"; if( zType[0]=='f' && !g.perm.RdForum ) zType = "x"; blob_append_sql(&bSQL, " AND event.type=%Q", zType); }else{ blob_append_sql(&bSQL, " AND event.type in ("); if( g.perm.Read ){ blob_append_sql(&bSQL, "'ci',"); } if( g.perm.RdTkt ){ blob_append_sql(&bSQL, "'t',"); } if( g.perm.RdWiki ){ blob_append_sql(&bSQL, "'w',"); } if( g.perm.RdForum ){ blob_append_sql(&bSQL, "'f',"); } blob_append_sql(&bSQL, "'x')"); } if( zTicketUuid ){ nTagId = db_int(0, "SELECT tagid FROM tag WHERE tagname GLOB 'tkt-%q*'", zTicketUuid); if ( nTagId==0 ){ nTagId = -1; |
︙ | ︙ | |||
129 130 131 132 133 134 135 | }else if( nTagId!=0 ){ blob_append_sql(&bSQL, " AND (EXISTS(SELECT 1 FROM tagxref" " WHERE tagid=%d AND tagtype>0 AND rid=blob.rid))", nTagId); } if( zFilename ){ blob_append_sql(&bSQL, | | > | | 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 | }else if( nTagId!=0 ){ blob_append_sql(&bSQL, " AND (EXISTS(SELECT 1 FROM tagxref" " WHERE tagid=%d AND tagtype>0 AND rid=blob.rid))", nTagId); } if( zFilename ){ blob_append_sql(&bSQL, " AND (SELECT mlink.fnid FROM mlink WHERE event.objid=mlink.mid) " " IN (SELECT fnid FROM filename WHERE name=%Q %s)", zFilename, filename_collation() ); } blob_append_sql( &bSQL, " ORDER BY event.mtime DESC" ); cgi_set_content_type("application/rss+xml"); zProjectName = db_get("project-name", 0); if( zProjectName==0 ){ zFreeProjectName = zProjectName = mprintf("Fossil source repository for: %s", g.zBaseURL); |
︙ | ︙ | |||
163 164 165 166 167 168 169 | @ <pubDate>%s(zPubDate)</pubDate> @ <generator>Fossil version %s(MANIFEST_VERSION) %s(MANIFEST_DATE)</generator> free(zPubDate); db_prepare(&q, "%s", blob_sql_text(&bSQL)); blob_reset( &bSQL ); while( db_step(&q)==SQLITE_ROW && nLine<nLimit ){ const char *zId = db_column_text(&q, 1); | | | | | 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | @ <pubDate>%s(zPubDate)</pubDate> @ <generator>Fossil version %s(MANIFEST_VERSION) %s(MANIFEST_DATE)</generator> free(zPubDate); db_prepare(&q, "%s", blob_sql_text(&bSQL)); blob_reset( &bSQL ); while( db_step(&q)==SQLITE_ROW && nLine<nLimit ){ const char *zId = db_column_text(&q, 1); const char *zEType = db_column_text(&q, 3); const char *zCom = db_column_text(&q, 4); const char *zAuthor = db_column_text(&q, 5); char *zPrefix = ""; char *zSuffix = 0; char *zDate; int nChild = db_column_int(&q, 5); int nParent = db_column_int(&q, 7); const char *zTagList = db_column_text(&q, 8); time_t ts; if( zTagList && zTagList[0]==0 ) zTagList = 0; ts = (time_t)((db_column_double(&q,2) - 2440587.5)*86400.0); zDate = cgi_rfc822_datestamp(ts); if('c'==zEType[0]){ if( nParent>1 && nChild>1 ){ zPrefix = "*MERGE/FORK* "; }else if( nParent>1 ){ zPrefix = "*MERGE* "; }else if( nChild>1 ){ zPrefix = "*FORK* "; } }else if('w'==zEType[0]){ switch(zCom ? zCom[0] : 0){ case ':': zPrefix = "Edit wiki page: "; break; case '+': zPrefix = "Add wiki page: "; break; case '-': zPrefix = "Delete wiki page: "; break; } if(*zPrefix) ++zCom; } |
︙ | ︙ |