Diff
Not logged in

Differences From:

File src/info.c part of check-in [5cf1206dfa] - Separate the new /doc method out into its own source file. by drh on 2008-05-15 20:18:32. Also file src/info.c part of check-in [6458f020fc] - Change the spelling of "descendant" to use the -ant suffix everywhere, including in the filename "descendant.c". The adjective form can be spelled either -ant or -ent, but the noun form requires -ant, or so says American Heritage. by drh on 2008-05-14 02:03:45. [view]

To:

File src/info.c part of check-in [68c24b1857] - Progress toward getting ticket handling to work. by drh on 2008-05-16 18:11:39. [view]

@@ -98,9 +98,10 @@
     }else{
       show_common_info(vid, "checkout:", 1);
     }
   }else{
-    int rid = name_to_rid(g.argv[2]);
+    int rid;
+    rid = name_to_rid(g.argv[2]);
     if( rid==0 ){
       fossil_panic("no such object: %s\n", g.argv[2]);
     }
     show_common_info(rid, "uuid:", 1);
@@ -583,9 +584,9 @@
   login_anonymous_available();
 
   rid = name_to_rid(PD("name",""));
   if( rid==0 ){
-    cgi_redirect("index");
+    fossil_redirect_home();
   }
   db_prepare(&q,
      "SELECT pid, fid, name"
      "  FROM mlink, filename"
@@ -806,12 +807,16 @@
   const char *zName;
   int rid, nName;
 
   zName = P("name");
-  if( zName==0 ) cgi_redirect("index");
+  if( zName==0 ) fossil_redirect_home();
   nName = strlen(zName);
   if( nName<4 || nName>UUID_SIZE || !validate16(zName, nName) ){
-    cgi_redirect("index");
+    fossil_redirect_home();
+  }
+  if( db_exists("SELECT 1 FROM ticket WHERE tkt_uuid GLOB '%s*'", zName) ){
+    tktview_page();
+    return;
   }
   rid = db_int(0, "SELECT rid FROM blob WHERE uuid GLOB '%s*'", zName);
   if( rid==0 ){
     style_header("Broken Link");