]> code.citadel.org Git - citadel.git/commitdiff
Another uick hack to improve embedded URL extraction
authorArt Cancro <ajc@citadel.org>
Mon, 2 Apr 2007 21:33:48 +0000 (21:33 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 2 Apr 2007 21:33:48 +0000 (21:33 +0000)
webcit/messages.c

index 1e79860a54649518b84d80468d7f93faef608d47..edcd544994613a5abded640aa4d255b6d3699df5 100644 (file)
@@ -270,7 +270,8 @@ void url(char *buf)
                return;
 
        for (pos = strlen(buf); pos > start; --pos) {
-               if (  (buf[pos] == ' ')
+               if (  (!isprint(buf[pos]))
+                  || (isspace(buf[pos]))
                   || (buf[pos] == '{')
                   || (buf[pos] == '}')
                   || (buf[pos] == '|')