Fossil

Check-in [16e765bac5]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix a bug in the "info" webpage.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 16e765bac59e30d61dbbe54d19172e6ca8600a5f
User & Date: drh 2008-02-25 00:18:30.000
Context
2008-02-25
02:26
Add the "stat" webpage showing repository statistics. ... (check-in: e71e4d3193 user: drh tags: trunk)
00:18
Fix a bug in the "info" webpage. ... (check-in: 16e765bac5 user: drh tags: trunk)
2008-02-24
21:51
Add a human-readable description on each timeline. Add the "ancestors" and "decendents" links on the baseline information pages, making it easier to understand the context of a baseline. ... (check-in: e38c89130f user: drh tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/info.c.
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
  
  zName = P("name");
  if( zName==0 ) cgi_redirect("index");
  nName = strlen(zName);
  if( nName<4 || nName>UUID_SIZE || !validate16(zName, nName) ){
    cgi_redirect("index");
  }
  rid = db_int(0, "SELECT rid FROM blob WHERE uuid GLOB '%s*'");
  if( rid==0 ){
    style_header("Broken Link");
    @ <p>No such object: %h(zName)</p>
    style_footer();
    return;
  }
  if( db_exists("SELECT 1 FROM mlink WHERE mid=%d", rid) ){







|







792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
  
  zName = P("name");
  if( zName==0 ) cgi_redirect("index");
  nName = strlen(zName);
  if( nName<4 || nName>UUID_SIZE || !validate16(zName, nName) ){
    cgi_redirect("index");
  }
  rid = db_int(0, "SELECT rid FROM blob WHERE uuid GLOB '%s*'", zName);
  if( rid==0 ){
    style_header("Broken Link");
    @ <p>No such object: %h(zName)</p>
    style_footer();
    return;
  }
  if( db_exists("SELECT 1 FROM mlink WHERE mid=%d", rid) ){