projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
91bc31f
)
Removed a test in html2html() that would cause it to go null every time.
author
Art Cancro
<ajc@citadel.org>
Thu, 31 Dec 2020 21:15:36 +0000
(16:15 -0500)
committer
Art Cancro
<ajc@citadel.org>
Thu, 31 Dec 2020 21:15:36 +0000
(16:15 -0500)
webcit-ng/html2html.c
patch
|
blob
|
history
diff --git
a/webcit-ng/html2html.c
b/webcit-ng/html2html.c
index 25884aad53ef1e9c09b0bf7f3dee132407a213d9..68c567b2a1359ee601dc73f97372ba52eff577f7 100644
(file)
--- a/
webcit-ng/html2html.c
+++ b/
webcit-ng/html2html.c
@@
-2,7
+2,7
@@
// Output an HTML message, modifying it slightly to make sure it plays nice
// with the rest of our web framework.
//
// Output an HTML message, modifying it slightly to make sure it plays nice
// with the rest of our web framework.
//
-// Copyright (c) 2005-20
18
by the citadel.org team
+// Copyright (c) 2005-20
20
by the citadel.org team
//
// This program is open source software. It runs great on the
// Linux operating system (and probably elsewhere). You can use,
//
// This program is open source software. It runs great on the
// Linux operating system (and probably elsewhere). You can use,
@@
-122,20
+122,11
@@
StrBuf *html2html(const char *supplied_charset, int treat_as_wiki, char *roomnam
size_t obuflen; /* Length of output buffer */
char *osav; /* Saved pointer to output buffer */
size_t obuflen; /* Length of output buffer */
char *osav; /* Saved pointer to output buffer */
- if (msg == NULL) {
- return (NULL);
- }
-
StrBuf *Target = NewStrBuf();
if (Target == NULL) {
return (NULL);
}
StrBuf *Target = NewStrBuf();
if (Target == NULL) {
return (NULL);
}
- TRACE;
- syslog(LOG_DEBUG, "CONVERT: <%s>", ChrPtr(Source));
-
-
-
safestrncpy(charset, supplied_charset, sizeof charset);
sprintf(new_window, "<a target=\"%s\" href=", TARGET);
safestrncpy(charset, supplied_charset, sizeof charset);
sprintf(new_window, "<a target=\"%s\" href=", TARGET);