From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from localhost (fantadrom.bsd.lv [local]); by fantadrom.bsd.lv (OpenSMTPD) with ESMTPA id 3e790eb4; for ; Sun, 11 Oct 2015 17:01:22 -0500 (EST) Date: Sun, 11 Oct 2015 17:01:22 -0500 (EST) Message-Id: <5182201136990299352.enqueue@fantadrom.bsd.lv> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Drop tags containing a blank character: They don't work, they X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Drop tags containing a blank character: They don't work, they break other tags in weird ways, and even if they could be made to work, they would be mostly useless. Issue reported by naddy@, thanks. Modified Files: -------------- mdocml: tag.c Revision Data ------------- Index: tag.c =================================================================== RCS file: /home/cvs/mdocml/mdocml/tag.c,v retrieving revision 1.8 retrieving revision 1.9 diff -Ltag.c -Ltag.c -u -p -r1.8 -r1.9 --- tag.c +++ tag.c @@ -125,7 +125,7 @@ tag_put(const char *s, int prio, size_t size_t len; unsigned int slot; - if (tag_files.tfd <= 0) + if (tag_files.tfd <= 0 || strchr(s, ' ') != NULL) return; slot = ohash_qlookup(&tag_data, s); entry = ohash_find(&tag_data, slot); -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv