Fossil

Check-in [5eea3db6]
Login

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

Overview
Comment:Fix the object ID decoding on the /info page. Ticket [a5403e6eee].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:5eea3db6c19f5185409adf301e129dbefa08c998
User & Date: drh 2010-01-20 15:48:21
References
2010-01-20
15:50 Fixed ticket [a5403e6e]: Clicking on ticket link on Timeline page redirects to Index Page. plus 2 other changes artifact: 74eada78 user: drh
Context
2010-01-20
16:25
Add the --cherrypick option to the trunk. I had intended to put the previous check-in on the truck but mistakenly left the local repository on the ssl branch. Fortunately, I was able to use to new --cherrypick option to pull the changes over into trunk without pulling all ssl changes. check-in: d2204a00 user: drh tags: trunk
15:56
Pull in the latest fixes from the trunk. check-in: ac8902be user: drh tags: ssl
15:55
Pull in the latest fixes from the trunk. check-in: a3161f5f user: drh tags: clear-title
15:48
Fix the object ID decoding on the /info page. Ticket [a5403e6eee]. check-in: 5eea3db6 user: drh tags: trunk
15:43
Fix a memory leak in the check-out logic that prevents opening of massive repositories. Ticket [708eab9d48] check-in: 726a13d2 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/info.c.

1058
1059
1060
1061
1062
1063
1064





1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
void info_page(void){
  const char *zName;
  Blob uuid;
  int rid;
  
  zName = P("name");
  if( zName==0 ) fossil_redirect_home();





  blob_set(&uuid, zName);
  if( name_to_uuid(&uuid, 1) ){
    fossil_redirect_home();
  }
  zName = blob_str(&uuid);
  if( db_exists("SELECT 1 FROM ticket WHERE tkt_uuid='%s'", zName) ){
    tktview_page();
    return;
  }
  rid = db_int(0, "SELECT rid FROM blob WHERE uuid='%s'", zName);
  if( rid==0 ){
    style_header("Broken Link");
    @ <p>No such object: %h(zName)</p>
    style_footer();
    return;
  }







>
>
>
>
>





<
<
<
<







1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074




1075
1076
1077
1078
1079
1080
1081
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))
   && db_exists("SELECT 1 FROM ticket WHERE tkt_uuid LIKE '%q%%'", zName) ){
    tktview_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);
  if( rid==0 ){
    style_header("Broken Link");
    @ <p>No such object: %h(zName)</p>
    style_footer();
    return;
  }