Check-in [a0cc2d2dda]

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

Overview
Comment:Fix redirect on tags
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | scgi
Files: files | file ages | folders
SHA1:a0cc2d2ddaa51a9b9e3e81c16c0c9cdde4b27ad9
User & Date: bapt 2015-04-23 14:52:16
Context
2015-04-23
15:00
Fossil browsing by date check-in: b97cc42edd user: bapt tags: scgi
14:52
Fix redirect on tags check-in: a0cc2d2dda user: bapt tags: scgi
14:49
Redirect /tag to / check-in: 813fd2005d user: bapt tags: scgi
Changes

Changes to web/cblogweb.c.

449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
				char *err_msg;
				asprintf(&err_msg, "Unknown post: %s", reqpath);
				ucl_object_insert_key(out, ucl_object_fromstring(err_msg), "err_msg", 0, false);
				type = CBLOG_ERR;
			}
			break;
		case CBLOG_TAG:
			reqpath++;
			while (*reqpath && *reqpath != '/')
				reqpath++;
			if (*reqpath == '\0') {
				type = CBLOG_POST_REDIRECT;
				reqpath = "/";
				break;
			}
			criteria.type = CRITERIA_TAGNAME;
			criteria.tagname = reqpath;







<
<
<







449
450
451
452
453
454
455



456
457
458
459
460
461
462
				char *err_msg;
				asprintf(&err_msg, "Unknown post: %s", reqpath);
				ucl_object_insert_key(out, ucl_object_fromstring(err_msg), "err_msg", 0, false);
				type = CBLOG_ERR;
			}
			break;
		case CBLOG_TAG:



			if (*reqpath == '\0') {
				type = CBLOG_POST_REDIRECT;
				reqpath = "/";
				break;
			}
			criteria.type = CRITERIA_TAGNAME;
			criteria.tagname = reqpath;