projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc90d6f
)
* Remove leading '|' from references if present
author
Art Cancro
<ajc@citadel.org>
Thu, 19 Mar 2009 19:54:21 +0000
(19:54 +0000)
committer
Art Cancro
<ajc@citadel.org>
Thu, 19 Mar 2009 19:54:21 +0000
(19:54 +0000)
webcit/messages.c
patch
|
blob
|
history
diff --git
a/webcit/messages.c
b/webcit/messages.c
index db512156cc8421f623472bcb4a13be3726f7eec2..cd2e0cf814ffa9f4198b88ebac6f5d5eb8f7cd71 100644
(file)
--- a/
webcit/messages.c
+++ b/
webcit/messages.c
@@
-1160,9
+1160,10
@@
void post_message(void)
{
const StrBuf *ref = sbstr("references");
references = NewStrBufPlain(ChrPtr(ref), StrLength(ref));
- lprintf(9, "Converting: %s\n", ChrPtr(references));
+ if (*ChrPtr(references) == '|') { /* remove leading '|' if present */
+ StrBufCutLeft(references, 1);
+ }
StrBufReplaceChars(references, '|', '!');
- lprintf(9, "Converted: %s\n", ChrPtr(references));
}
if (havebstr("subject")) {
const StrBuf *Subj;