VILE SLEAZY HACK. If anyone had their start page configured as '/do_template?templat...
authorArt Cancro <ajc@uncensored.citadel.org>
Sun, 18 Mar 2012 16:55:27 +0000 (12:55 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Sun, 18 Mar 2012 16:55:27 +0000 (12:55 -0400)
webcit/preferences.c

index f0a1776c1d8d058dfb8e06d35ef373017d1b8e6c..bcec00d89b9203fe369135a3dfb4fccb40232c4d 100644 (file)
@@ -184,6 +184,20 @@ void ParsePref(HashList **List, StrBuf *ReadBuf)
                        Data->Val = NewStrBuf();
                        StrBufExtract_token(Data->Key, ReadBuf, 0, '|');
                        StrBufExtract_token(Data->Val, ReadBuf, 1, '|');
+
+                       /***************** BEGIN VILE SLEAZY HACK ************************/
+
+                       /* some users might still have this start page configured, which now breaks */
+
+                       if (    (!strcasecmp(ChrPtr(Data->Key), "startpage"))
+                               && (!strcasecmp(ChrPtr(Data->Val), "/do_template?template=summary_page"))
+                       ) {
+                               FreeStrBuf(&Data->Val);
+                               Data->Val = NewStrBufPlain(HKEY("/summary"));
+                       }
+
+                       /******************* END VILE SLEAZY HACK ************************/
+
                        if (!IsEmptyStr(ChrPtr(Data->Key)))
                        {
                                Put(*List,