diff options
author | An-Cheng Huang <ancheng@vyatta.com> | 2010-06-10 17:26:57 -0700 |
---|---|---|
committer | An-Cheng Huang <ancheng@vyatta.com> | 2010-06-10 17:26:57 -0700 |
commit | c1877d1acd48dfeba464b33b268107ccca65c5e2 (patch) | |
tree | f6a6ea742aef0b847c86212c8444af2ffe8e4bab /src/set.c | |
parent | eae0d49f34f70752084b6563e78811ccd2466bb8 (diff) | |
download | vyatta-cfg-c1877d1acd48dfeba464b33b268107ccca65c5e2.tar.gz vyatta-cfg-c1877d1acd48dfeba464b33b268107ccca65c5e2.zip |
add value character restriction
* disallow newline in value strings.
* move check into lib.
Diffstat (limited to 'src/set.c')
-rw-r--r-- | src/set.c | 11 |
1 files changed, 0 insertions, 11 deletions
@@ -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) { |