*** empty log message ***
authorArt Cancro <ajc@citadel.org>
Fri, 18 Feb 2005 18:53:34 +0000 (18:53 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 18 Feb 2005 18:53:34 +0000 (18:53 +0000)
webcit/mainmenu.c
webcit/messages.c

index 5a0af2f7d9d272fea88567c874c3658853f4f681..630007f350798f97290d221edeaa0d8ed32fd0c5 100644 (file)
@@ -202,7 +202,7 @@ void display_aide_menu(void)
                "</div>\n<div id=\"content\">\n"
        );
 
-       wprintf("<center><table border=0 width=99%% bgcolor=\"#ffffff\"><tr><td>\n");
+       wprintf("<center><table border=1 cellpadding=5 bgcolor=\"#ffffff\"><tr><td>\n");
 
        wprintf("<A HREF=\"/display_siteconfig\">"
                "<span class=\"mainmenu\">"
index 41a976cca06a9544f66d0f44c78fb885d7e6db54..b3e55205cb549d14404cc1c4f9ade8a0c7b5bf24 100644 (file)
@@ -103,6 +103,11 @@ void fetchname_parsed_vcard(struct vCard *v, char *storename) {
        if (v->numprops) for (i=0; i<(v->numprops); ++i) {
                if (!strcasecmp(v->prop[i].name, "n")) {
                        strcpy(storename, v->prop[i].value);
+                       if ((strlen(storename)>0) && (storename[0] != ';')) {
+                               while(storename[strlen(storename)-1] == ';') {
+                                       storename[strlen(storename)-1] = 0;
+                               }
+                       }
                }
        }
 }
@@ -142,10 +147,11 @@ void display_parsed_vcard(struct vCard *v, int full) {
        if (!full) {
                wprintf("<TD>");
                name = vcard_get_prop(v, "fn", 1, 0, 0);
-               if (name == NULL) name = vcard_get_prop(v, "n", 1, 0, 0);
                if (name != NULL) {
-                       strcpy(buf, name);
-                       escputs(buf);
+                       escputs(name);
+               }
+               else if (name = vcard_get_prop(v, "n", 1, 0, 0), name != NULL) {
+                       escputs(name);
                }
                else {
                        wprintf("&nbsp;");