From 63deece5bd2380725f32c42b5af0e74272afa140 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Sun, 6 Nov 2005 03:54:00 +0000 Subject: [PATCH] * Found and removed more absolute URL's. --- webcit/ChangeLog | 3 +++ webcit/auth.c | 8 ++++---- webcit/iconbar.c | 2 +- webcit/messages.c | 12 ++++++------ webcit/roomops.c | 8 ++++---- webcit/summary.c | 2 +- webcit/useredit.c | 2 +- webcit/vcard_edit.c | 4 ++-- webcit/webcit.c | 6 +++--- webcit/who.c | 10 +++++----- 10 files changed, 30 insertions(+), 27 deletions(-) diff --git a/webcit/ChangeLog b/webcit/ChangeLog index 76de0260b..b6e7726de 100644 --- a/webcit/ChangeLog +++ b/webcit/ChangeLog @@ -1,5 +1,8 @@ $Id$ +Sat Nov 5 22:53:29 EST 2005 ajc +* Found and removed more absolute URL's. + Sat Nov 5 00:50:25 EST 2005 ajc * The checkboxes are gone! Implemented ajax delete of selected messages, via either the Delete button or the Delete key. diff --git a/webcit/auth.c b/webcit/auth.c index 3c0058bf4..423e3d4c2 100644 --- a/webcit/auth.c +++ b/webcit/auth.c @@ -185,7 +185,7 @@ void do_welcome(void) } if (!setup_wizard) { - http_redirect("/setup_wizard"); + http_redirect("setup_wizard"); } } #endif @@ -195,7 +195,7 @@ void do_welcome(void) */ get_preference("startpage", buf, sizeof buf); if (strlen(buf)==0) { - safestrncpy(buf, "/dotskip&room=_BASEROOM_", sizeof buf); + safestrncpy(buf, "dotskip&room=_BASEROOM_", sizeof buf); set_preference("startpage", buf, 1); } http_redirect(buf); @@ -363,10 +363,10 @@ void display_reg(int during_login) } if (during_login) { - do_edit_vcard(vcard_msgnum, "1", "/do_welcome"); + do_edit_vcard(vcard_msgnum, "1", "do_welcome"); } else { - do_edit_vcard(vcard_msgnum, "1", "/display_main_menu"); + do_edit_vcard(vcard_msgnum, "1", "display_main_menu"); } } diff --git a/webcit/iconbar.c b/webcit/iconbar.c index 0182bac7d..8090c1c2c 100644 --- a/webcit/iconbar.c +++ b/webcit/iconbar.c @@ -227,7 +227,7 @@ void do_iconbar(void) { if (ib_chat) { wprintf("
  • " - "" + wprintf("" "[%s]", msgnum, msgnum, _("Print")); wprintf(""); @@ -2122,7 +2122,7 @@ void readloop(char *oper) lo = b - maxmsgs + 2; if (lo < 1) lo = 1; wprintf(" ", @@ -2171,12 +2171,12 @@ void readloop(char *oper) "[selectedIndex].value\">\n" ); - wprintf("\n", + wprintf("\n", (bbs_reverse ? "" : "selected"), oper ); - wprintf("\n", + wprintf("\n", (bbs_reverse ? "selected" : ""), oper ); diff --git a/webcit/roomops.c b/webcit/roomops.c index ca0e50ed7..db99379d9 100644 --- a/webcit/roomops.c +++ b/webcit/roomops.c @@ -322,7 +322,7 @@ void embed_view_o_matic(void) { || ( (i == 1) && (WC->wc_default_view == 0) ) ) { - wprintf("\n", ( !strcasecmp(listviewpref, "rooms") ? "SELECTED" : "" ) ); - wprintf("\n", ( !strcasecmp(listviewpref, "folders") ? "SELECTED" : "" ) diff --git a/webcit/summary.c b/webcit/summary.c index fa3176c54..4a13e339b 100644 --- a/webcit/summary.c +++ b/webcit/summary.c @@ -298,7 +298,7 @@ void summary(void) { wprintf( " \n" ); diff --git a/webcit/useredit.c b/webcit/useredit.c index 0da291186..73328b00b 100644 --- a/webcit/useredit.c +++ b/webcit/useredit.c @@ -195,7 +195,7 @@ void display_edit_address_book_entry(char *username, long usernum) { return; } - do_edit_vcard(vcard_msgnum, "1", "/select_user_to_edit"); + do_edit_vcard(vcard_msgnum, "1", "select_user_to_edit"); } diff --git a/webcit/vcard_edit.c b/webcit/vcard_edit.c index e9ac011b1..7ff6a76aa 100644 --- a/webcit/vcard_edit.c +++ b/webcit/vcard_edit.c @@ -400,10 +400,10 @@ void submit_vcard(void) { serv_puts("end:vcard"); serv_puts("000"); - if (!strcmp(bstr("return_to"), "/select_user_to_edit")) { + if (!strcmp(bstr("return_to"), "select_user_to_edit")) { select_user_to_edit(NULL, NULL); } - else if (!strcmp(bstr("return_to"), "/do_welcome")) { + else if (!strcmp(bstr("return_to"), "do_welcome")) { do_welcome(); } else { diff --git a/webcit/webcit.c b/webcit/webcit.c index c2b0c1c2d..1eff37aa7 100644 --- a/webcit/webcit.c +++ b/webcit/webcit.c @@ -1342,13 +1342,13 @@ void session_loop(struct httprequest *req) } else if (!strcasecmp(action, "display_editpic")) { display_graphics_upload(_("your photo"), "UIMG 0|_userpic_", - "/editpic"); + "editpic"); } else if (!strcasecmp(action, "editpic")) { do_graphics_upload("UIMG 1|_userpic_"); } else if (!strcasecmp(action, "display_editroompic")) { display_graphics_upload(_("the icon for this room"), "UIMG 0|_roompic_", - "/editroompic"); + "editroompic"); } else if (!strcasecmp(action, "editroompic")) { do_graphics_upload("UIMG 1|_roompic_"); } else if (!strcasecmp(action, "delete_floor")) { @@ -1362,7 +1362,7 @@ void session_loop(struct httprequest *req) bstr("which_floor")); display_graphics_upload(_("the icon for this floor"), buf, - "/editfloorpic"); + "editfloorpic"); } else if (!strcasecmp(action, "editfloorpic")) { sprintf(buf, "UIMG 1|_floorpic_|%s", bstr("which_floor")); diff --git a/webcit/who.c b/webcit/who.c index 24e4217db..341b9bdf6 100644 --- a/webcit/who.c +++ b/webcit/who.c @@ -175,7 +175,7 @@ void who(void) */ wprintf( " \n" ); @@ -203,17 +203,17 @@ void edit_me(void) if (strlen(bstr("change_room_name_button")) > 0) { serv_printf("RCHG %s", bstr("fake_roomname")); serv_getln(buf, sizeof buf); - http_redirect("/who"); + http_redirect("who"); } else if (strlen(bstr("change_host_name_button")) > 0) { serv_printf("HCHG %s", bstr("fake_hostname")); serv_getln(buf, sizeof buf); - http_redirect("/who"); + http_redirect("who"); } else if (strlen(bstr("change_user_name_button")) > 0) { serv_printf("UCHG %s", bstr("fake_username")); serv_getln(buf, sizeof buf); - http_redirect("/who"); + http_redirect("who"); } else if (strlen(bstr("cancel_button")) > 0) { - http_redirect("/who"); + http_redirect("who"); } else { output_headers(1, 1, 0, 0, 0, 0); -- 2.30.2