Bläddra i källkod

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

simond 23 år sedan
förälder
incheckning
1b4e725a27
1 ändrade filer med 5 tillägg och 1 borttagningar
  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";