Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix the /info URL so that it works for events. Ticket [b5efc3a47bd10f0510]. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
1e801c5f6452183a93f27b52acb6b97f |
| User & Date: | drh 2011-01-14 21:07:12.626 |
Context
|
2011-01-15
| ||
| 01:09 | Add the release-checklist.wiki document. ... (check-in: e2e5667057 user: drh tags: trunk) | |
|
2011-01-14
| ||
| 21:07 | Fix the /info URL so that it works for events. Ticket [b5efc3a47bd10f0510]. ... (check-in: 1e801c5f64 user: drh tags: trunk) | |
| 20:54 | Remove some dead code from the web timeline. ... (check-in: cbc41ff4c9 user: drh tags: trunk) | |
Changes
Changes to src/info.c.
| ︙ | ︙ | |||
1247 1248 1249 1250 1251 1252 1253 |
void info_page(void){
const char *zName;
Blob uuid;
int rid;
zName = P("name");
if( zName==0 ) fossil_redirect_home();
| | | | | > > > > > | 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 |
void info_page(void){
const char *zName;
Blob uuid;
int rid;
zName = P("name");
if( zName==0 ) fossil_redirect_home();
if( validate16(zName, strlen(zName)) ){
if( db_exists("SELECT 1 FROM ticket WHERE tkt_uuid GLOB '%q*'", zName) ){
tktview_page();
return;
}
if( db_exists("SELECT 1 FROM tag WHERE tagname GLOB 'event-%q*'", zName) ){
event_page();
return;
}
}
blob_set(&uuid, zName);
if( name_to_uuid(&uuid, 1) ){
fossil_redirect_home();
}
zName = blob_str(&uuid);
rid = db_int(0, "SELECT rid FROM blob WHERE uuid='%s'", zName);
|
| ︙ | ︙ |