Make sure no invalid value gets assigned to frame_top on writing config
authorsimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 31 Jan 2002 14:06:29 +0000 (14:06 +0000)
committersimond <simond@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Thu, 31 Jan 2002 14:06:29 +0000 (14:06 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@2319 7612ce4b-ef26-0410-bec9-ea0150e637f0

config/conf.pl

index e376284..1309846 100755 (executable)
@@ -1889,7 +1889,11 @@ sub save_data {
         print CF "\$org_logo      = '$org_logo';\n";
         print CF "\$org_title     = \"$org_title\";\n";
         print CF "\$signout_page  = '$signout_page';\n";
-        print CF "\$frame_top     = '$frame_top';\n";
+        if ($frame_top eq "") {
+            print CF "\$frame_top     = '_top';\n";
+        } else {
+            print CF "\$frame_top     = '$frame_top';\n";
+        }
         print CF "\n";
      
         print CF "global \$motd;\n";