Check-in [bffa15ec7c]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:if string is empty consider it as false
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | scgi
Files: files | file ages | folders
SHA1:bffa15ec7c25b4a39b58b95c26c6ed99f839ae2e
User & Date: bapt 2015-04-23 16:01:57
Context
2015-04-23
16:02
Load properly comments check-in: 1f8c4959f1 user: bapt tags: scgi
16:01
if string is empty consider it as false check-in: bffa15ec7c user: bapt tags: scgi
15:52
Fix boolean testing eating a char when true check-in: c0955e27e6 user: bapt tags: scgi
Changes

Changes to web/ucltpl.c.

29
30
31
32
33
34
35


36
37
38
39
40
41
42
		return (walk);

	if (k == '#') {
		if (obj == NULL)
			return (pos + sz -1);
		if (obj->type == UCL_BOOLEAN && !ucl_object_toboolean(obj))
			return (pos + sz - 1 );


		if (obj->type == UCL_NULL)
			return (pos + sz - 1);
		if (obj->type == UCL_ARRAY) {
			it = NULL;
			while ((o = ucl_iterate_object(obj, &it, true)))
				ucltpl_process_buffer(p, walk, pos - 1, o);
			return (pos + sz -1 );







>
>







29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
		return (walk);

	if (k == '#') {
		if (obj == NULL)
			return (pos + sz -1);
		if (obj->type == UCL_BOOLEAN && !ucl_object_toboolean(obj))
			return (pos + sz - 1 );
		if (obj->type == UCL_STRING && obj->len == 0)
			return (pos + sz - 1);
		if (obj->type == UCL_NULL)
			return (pos + sz - 1);
		if (obj->type == UCL_ARRAY) {
			it = NULL;
			while ((o = ucl_iterate_object(obj, &it, true)))
				ucltpl_process_buffer(p, walk, pos - 1, o);
			return (pos + sz -1 );