diff -r d07810b02147 -r de4bc3cd2d36 src/server/config/conf.c --- a/src/server/config/conf.c Sat Dec 29 18:08:23 2012 +0100 +++ b/src/server/config/conf.c Sun Dec 30 15:49:44 2012 +0100 @@ -229,8 +229,15 @@ break; // end of value } } - value->length = i - name->length - 2; - i++; + + if(quote) { + // if the value is quoted, i points to the last quote char + value->length = i - name->length - 2; // subtract the quotes + i++; // set i behind the last quote + } else { + // i points to a white space char, which must be subtraced + value->length = i - name->length - 1; + } if(value->length <= 0) { value->length = 0; @@ -333,7 +340,6 @@ if(pname.length <= 0) { break; } - // create param object ConfigParam *param = OBJ_NEW(mp, ConfigParam);