From c1877d1acd48dfeba464b33b268107ccca65c5e2 Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Thu, 10 Jun 2010 17:26:57 -0700 Subject: add value character restriction * disallow newline in value strings. * move check into lib. --- src/set.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/set.c') diff --git a/src/set.c b/src/set.c index 004f25c..5a68aac 100644 --- a/src/set.c +++ b/src/set.c @@ -29,17 +29,6 @@ boolean set_validate(vtw_def *defp, char *valp, boolean empty_val) char* path_end=NULL; if (!empty_val) { - int i = 0; - int val_len = strlen(valp); - - for (i = 0; i < val_len; i++) { - if (valp[i] == '\'') { - fprintf(out_stream, "Cannot use the \"'\" (single quote) character " - "in a value string\n"); - bye("single quote in value string\n"); - } - } - { clind_path_ref tp = clind_path_construct(t_path.path); if(tp) { -- cgit v1.2.3