Permalink
Browse files

Added the parameter generate-snippet to the CGI.

  • Loading branch information...
1 parent 6535653 commit 5410c351f60e3befe8f373c7eedf2826b6ddb59e @jfisteus jfisteus committed Dec 11, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/cgi.c
View
@@ -328,6 +328,9 @@ static int set_param(const char *name, size_t name_len,
if (!strncmp(name, "no-protect-cdata", 16)) {
if (value_len == 1 && value[0] == '1')
param_protect_cdata = 0;
+ } else if (!strncmp(name, "generate-snippet", 16)) {
+ if (value_len == 1 && value[0] == '1')
+ param_generate_snippet = 1;
}
} else if (name_len == 21) {
if (!strncmp(name, "empty-elm-tags-always", 21)) {

0 comments on commit 5410c35

Please sign in to comment.