]> code.citadel.org Git - citadel.git/blobdiff - webcit/serv_func.c
* migrated SUBST stuff to hash
[citadel.git] / webcit / serv_func.c
index 0ce784cf057b4e6f1aaa37f5415eae252fbf89de..fed2011020372d934d32963f258f2be2198c49b4 100644 (file)
@@ -6,7 +6,7 @@
 #include "webserver.h"
 
 struct serv_info serv_info; /**< our connection data to the server */
-
+HashList *ServHash = NULL;//// TODO;
 /*
  * get info about the server we've connected to
  *
@@ -32,15 +32,13 @@ void get_serv_info(char *browser_host, char *user_agent)
        serv_puts("MSGP text/html|text/plain");
        serv_getln(buf, sizeof buf);
 
-#ifdef WEBCIT_WITH_CALENDAR_SERVICE
-       /**
+       /*
         * Tell the server that when we save a calendar event, we
         * want invitations to be generated by the Citadel server
         * instead of by the client.
         */
        serv_puts("ICAL sgi|1");
        serv_getln(buf, sizeof buf);
-#endif
 
        /** Now ask the server to tell us a little bit about itself... */
        serv_puts("INFO");
@@ -94,6 +92,9 @@ void get_serv_info(char *browser_host, char *user_agent)
                case 21:
                        serv_info.serv_fulltext_enabled = atoi(buf);
                        break;
+               case 22:
+                       safestrncpy(serv_info.serv_svn_revision, buf, sizeof serv_info.serv_svn_revision);
+                       break;
                }
                ++a;
        }
@@ -135,7 +136,7 @@ void fmout(char *align)
                        strcpy(buf, &buf[2]);
                }
                /** Activate embedded URL's */
-               url(buf);
+               url(buf, sizeof(buf));
 
                escputs(buf);
                wprintf("\n");