CVSTrac Legacy Code

Check-in [79df195944]
Login

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

Overview
Comment:Carriage returns, line feeds and tabs in the command line may make the Windows command line incomplete.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 79df195944d92b3a0e7e08821f84ba783e3b8ae0
User & Date: ono 2008-09-16 15:12:14
Context
2008-10-09
22:59
(#764) merge [1010]: don't use CGI output stuff when we don't have a URL. This may not be needed in HEAD, but it certainly won't hurt. check-in: d0137d8b19 user: cpb tags: trunk
2008-09-16
15:12
Carriage returns, line feeds and tabs in the command line may make the Windows command line incomplete. check-in: 79df195944 user: ono tags: trunk
15:10
(#118) %c using owner when no contact specified was broken by 1.111 commit. check-in: 5e407f9cfd user: ono tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ticket.c.

159
160
161
162
163
164
165











166
167
168
169
170
171
172
      i++;
    }else{
      zCmd[j++] = zNotify[i];
    }
  }
  zCmd[j] = 0;
  assert( j<=cmdSize );











  system(zCmd);
  free(zCmd);
}

/*
** Adds all appropriate action bar links for ticket tools
*/







>
>
>
>
>
>
>
>
>
>
>







159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
      i++;
    }else{
      zCmd[j++] = zNotify[i];
    }
  }
  zCmd[j] = 0;
  assert( j<=cmdSize );
#ifdef CVSTRAC_WINDOWS
  /* Remove line feeds, carriage returns and tabs from the command line.
  ** Any carriage return will make the command incomplete on Windows.
  */
  for(i=j=0; zCmd[i]; i++){
    if( zCmd[i]!='\r' && zCmd[i]!='\n' && zCmd[i]!='\t' ){
      zCmd[j++] = zCmd[i];      
    }
  }
  zCmd[j] = 0;
#endif
  system(zCmd);
  free(zCmd);
}

/*
** Adds all appropriate action bar links for ticket tools
*/