more str_wiki_index() use
authorArt Cancro <ajc@uncensored.citadel.org>
Mon, 23 Apr 2012 22:20:03 +0000 (18:20 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Mon, 23 Apr 2012 22:20:03 +0000 (18:20 -0400)
webcit/wiki.c

index 186bd00ca1b8f73355e9b264da6a04e57588b116..ff3e4362342ba77bf1407601ba44418b495441ac 100644 (file)
@@ -49,8 +49,6 @@ void display_wiki_page_backend(char *pagename, char *rev, int do_revert)
        long msgnum = (-1L);
        char buf[256];
 
-       str_wiki_index(pagename);
-
        if (WC->CurRoom.view != VIEW_WIKI) {
                wc_printf(_("'%s' is not a Wiki room."), ChrPtr(WC->CurRoom.name) );
                return;
@@ -60,7 +58,7 @@ void display_wiki_page_backend(char *pagename, char *rev, int do_revert)
                strcpy(pagename, "home");
        }
 
-       /* Found it!  Now read it. */
+       str_wiki_index(pagename);       /* convert index name to lowercase and numeric only */
 
        if ((rev != NULL) && (strlen(rev) > 0)) {
                /* read an older revision */
@@ -71,7 +69,7 @@ void display_wiki_page_backend(char *pagename, char *rev, int do_revert)
                }
        }
        else {
-               /* read the current revision? */
+               /* read the current revision */
                msgnum = locate_message_by_uid(pagename);
        }