CVSTrac Legacy Code

Check-in [7b0e1f76c7]
Login

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

Overview
Comment:check for valid ticket and cn before trying to output anything
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 7b0e1f76c7e2075c92b34ff2eeb19a2ce6b7a041
User & Date: cpb 2009-12-23 14:03:53
Context
2010-11-26
15:55
(#822) add a secondary sort by date as default. Adding a "Sort by date"/"Sort by Relevance" toggle should be trivial from here. check-in: d339dba99a user: cpb tags: trunk
2009-12-23
14:03
check for valid ticket and cn before trying to output anything check-in: 7b0e1f76c7 user: cpb tags: trunk
14:03
oops... make sure it's a valid ticket number check-in: 79dd28a1ad user: cpb tags: trunk
Changes
Hide Diffs Unified Diffs Show Whitespace Changes Patch

Changes to view.c.

726
727
728
729
730
731
732
733



734
735



736
737
738
739
740
741
742
  const char *zWkey = wiki_key();
  const char *zTkey = tkt_key();
  const char *zCkey = chng_key();

  if( !strncmp(zData,zWkey,strlen(zWkey)) ){
    output_formatted(&zData[strlen(zWkey)],0);
  }else if( !strncmp(zData,zTkey,strlen(zTkey)) ){
    output_ticket(atoi(&zData[strlen(zTkey)]),rn);



  }else if( !strncmp(zData,zCkey,strlen(zCkey)) ){
    output_chng(atoi(&zData[strlen(zCkey)]));



  }else{
    @ %h(zData)
  }
}

static void column_header(int rn,const char *zCol, int nCol, int nSorted,
    const char *zDirection, const char *zExtra







|
>
>
>

|
>
>
>







726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
  const char *zWkey = wiki_key();
  const char *zTkey = tkt_key();
  const char *zCkey = chng_key();

  if( !strncmp(zData,zWkey,strlen(zWkey)) ){
    output_formatted(&zData[strlen(zWkey)],0);
  }else if( !strncmp(zData,zTkey,strlen(zTkey)) ){
    int tn = atoi(&zData[strlen(zTkey)]);
	 if( tn>0 ){
      output_ticket(tn,rn);
	 }
  }else if( !strncmp(zData,zCkey,strlen(zCkey)) ){
	 int cn = atoi(&zData[strlen(zCkey)]);
	 if( cn>0 ){
      output_chng(cn);
	 }
  }else{
    @ %h(zData)
  }
}

static void column_header(int rn,const char *zCol, int nCol, int nSorted,
    const char *zDirection, const char *zExtra