浏览代码

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

simond 23 年之前
父节点
当前提交
1b4e725a27
共有 1 个文件被更改,包括 5 次插入1 次删除
  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";