]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
sneaking up on that bug like a cat prowling in the jungle
[citadel.git] / webcit / webcit.c
index aa8c4cfbd7cbac1b2ed3836374bdb99f5bbeb848..6d789dc4879b990725c30b5df3882f15eb085733 100644 (file)
@@ -347,13 +347,16 @@ void authorization_required(void)
        wc_printf("<h1>");
        wc_printf(_("Authorization Required"));
        wc_printf("</h1>\r\n");
-       
 
-       if (WCC->ImportantMsg != NULL)
+       if (WCC->ImportantMsg != NULL) {
                message = ChrPtr(WCC->ImportantMsg);
+       }
 
-       wc_printf(_("The resource you requested requires a valid username and password. "
-               "You could not be logged in: %s\n"), message);
+       wc_printf(
+               _("The resource you requested requires a valid username and password. "
+               "You could not be logged in: %s\n"),
+               message
+       );
        wDumpContent(0);
        end_webcit_session();
 }
@@ -584,7 +587,7 @@ int ReadPostData(void)
        return 1;
 }
 
-
+#if 0
 void ParseREST_URL(void)
 {
        StrBuf *Buf;
@@ -626,6 +629,7 @@ void ParseREST_URL(void)
                }
        }
 }
+#endif
 
 int Conditional_REST_DEPTH(StrBuf *Target, WCTemplputParams *TP)
 {
@@ -812,10 +816,10 @@ void session_loop(void)
                        display_login();
                }
                else {
-/*
+#if 0
                        if ((WCC->Hdr->HR.Handler->Flags & PARSE_REST_URL) != 0)
                                ParseREST_URL();
-*/
+#endif
                        if ((WCC->Hdr->HR.Handler->Flags & AJAX) != 0)
                                begin_ajax_response();
                        WCC->Hdr->HR.Handler->F();