Check-in [e75b1fb47d]

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

Overview
Comment:Redirect /post to /
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | scgi
Files: files | file ages | folders
SHA1:e75b1fb47d2946c7a408817c7b31f32aa4603d6e
User & Date: bapt 2015-04-23 14:47:26
Context
2015-04-23
14:49
Redirect /tag to / check-in: 813fd2005d user: bapt tags: scgi
14:47
Redirect /post to / check-in: e75b1fb47d user: bapt tags: scgi
14:45
Print all pages check-in: 8322e0fbb0 user: bapt tags: scgi
Changes

Changes to web/cblogweb.c.

428
429
430
431
432
433
434
435
436






437
438
439
440
441
442
443
		criteria.timefmt = ucl_get_string(conf, "dateformat");

	reqpath = r.path;
	switch (type) {
		case CBLOG_POST:
			warnx("ixi %d", type);
			reqpath++;
			while (*reqpath && reqpath[0] != '/')
				reqpath++;






			reqpath++;

			if (comment == CBLOG_COMMENT_POST) {
				//set_comment(&h, reqpath, hdf_get_value(out, "antispamres", NULL), sqlite);
				type = CBLOG_POST_REDIRECT;
				break;
			}







|

>
>
>
>
>
>







428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
		criteria.timefmt = ucl_get_string(conf, "dateformat");

	reqpath = r.path;
	switch (type) {
		case CBLOG_POST:
			warnx("ixi %d", type);
			reqpath++;
			while (*reqpath && *reqpath != '/')
				reqpath++;
			if (*reqpath == '\0') {
				type = CBLOG_POST_REDIRECT;
				reqpath = "/";
				break;
			}

			reqpath++;

			if (comment == CBLOG_COMMENT_POST) {
				//set_comment(&h, reqpath, hdf_get_value(out, "antispamres", NULL), sqlite);
				type = CBLOG_POST_REDIRECT;
				break;
			}