zoukankan      html  css  js  c++  java
  • 织梦cms添加新变量出现:Request var not allow!的解决办法

    有些朋友可能在使用最新版V57 后台-系统基本参数设置中添加新变量时候出现:Request var not allow!
     
    后面经过小编查看,找到了方法,和大家一起来分享:
     
    找到:根目录->include->common.inc.php

    <span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">1
    if( strlen($svar)>0 && preg_match('#^(cfg_|GLOBALS|_GET|_POST|_COOKIE)#',$svar) )</span></span>

    官方是不是大意了,写成了“如果添加的变量名长度大于零”就返回错误
     
    只要把“>”改成“<”即可解决问题
     
    一共需要修改两处:第74行 和 76行,修改成如下代码:

    <span style="font-family:tahoma,geneva,sans-serif;"><span style="font-size:14px;">1
    if( strlen($svar)<0 && preg_match('#^(cfg_|GLOBALS|_GET|_POST|_COOKIE)#',$svar) )
    </span></span>

  • 相关阅读:
    topcoder srm 681 div1
    topcoder srm 683 div1
    topcoder srm 684 div1
    topcoder srm 715 div1
    topcoder srm 685 div1
    topcoder srm 687 div1
    topcoder srm 688 div1
    topcoder srm 689 div1
    topcoder srm 686 div1
    topcoder srm 690 div1 -3
  • 原文地址:https://www.cnblogs.com/zqw111/p/13036538.html
Copyright © 2011-2022 走看看