Fossil

Diff
Login

Diff

Differences From Artifact [c9a0fcba1d]:

To Artifact [3da69f1393]:


329
330
331
332
333
334
335
336





337
338
339
340
341
342
343
329
330
331
332
333
334
335

336
337
338
339
340
341
342
343
344
345
346
347







-
+
+
+
+
+








/*
** Return true if the input is an argument that is never safe for use
** with %s.
*/
static int never_safe(const char *z){
  if( strstr(z,"/*safe-for-%s*/")!=0 ) return 0;
  if( z[0]=='P' ) return 1;  /* CGI macros like P() and PD() */
  if( z[0]=='P' ){
    if( strncmp(z,"PIF(",4)==0 ) return 0;
    if( strncmp(z,"PCK(",4)==0 ) return 0;
    return 1;
  }
  if( strncmp(z,"cgi_param",9)==0 ) return 1;
  return 0;
}

/*
** Processing flags
*/