Browse Source

Make sure no invalid value gets assigned to frame_top on writing config

simond 23 years ago
parent
commit
1b4e725a27
1 changed files with 5 additions and 1 deletions
  1. 5 1
      config/conf.pl

+ 5 - 1
config/conf.pl

@@ -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";