projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* When converting "anything that looks like a URL" to a real link, first
[citadel.git]
/
webcit
/
webcit.c
diff --git
a/webcit/webcit.c
b/webcit/webcit.c
index b5b9e18ce302bf6af09d79e32407c6539572ca8e..90984f330d96044447f86cba787d24dd48a064bb 100644
(file)
--- a/
webcit/webcit.c
+++ b/
webcit/webcit.c
@@
-92,11
+92,11
@@
void addurls(char *url)
for (a = 0; a <= b; ++a)
++up;
- /* locate
the & sign
*/
+ /* locate
"&" and "?" delimiters
*/
ptr = up;
b = strlen(up);
for (a = 0; a < strlen(up); ++a) {
- if (
!strncmp(ptr, "&", 1)
) {
+ if (
(ptr[0] == '&') || (ptr[0] == '?')
) {
b = a;
break;
}