Dedecms php. ini register_globals must is Off

Source: Internet
Author: User

You can directly go to include/common. inc. php.

----
// Disable session. auto_start
If (ini_get ('session. auto_start ')! = 0)
{
Exit ('php. ini session. auto_start must is 0! ');
}
----
Delete.

============================
After this is deleted, find it again...
There is another
If (ini_get ('register _ globals '))
{
Exit ('php. ini register_globals must is Off! ');
}
After deletion, it can be perfectly solved.

 

The parts to be deleted are:
1. Row 10-20
// Enable register_globals has many unsafe possibilities. Therefore, disable register_globals.
If (ini_get ('register _ globals '))
{
Exit ('php. ini register_globals must is Off! ');
}

// Disable session. auto_start
If (ini_get ('session. auto_start ')! = 0)
{
Exit ('php. ini session. auto_start must is 0! ');
}

2. Lines 72nd to 75
If (ini_get ('register _ globals '))
{
Exit ('php. ini register_globals must is Off! ');
}

The deletion of the above two locations can be perfectly solved!

Search for this item in php. ini of apche. You should change register_globals = on to register_globals = off to save and restart the server environment, such as restarting apche.

 

In the morning, the update mainly filters out register_globals and session. auto_start strictly.
If the server is an independent server, you can modify php. ini in the php configuration file and change register_globals = On to register_globals = Off.
Change session. auto_start = 1 to session. auto_start = 0, and restart Apache.
If you are a VM user, try to notify the space provider to modify the configuration, or try ini_set ('session. auto_start ', 0.
If this is not the case, use the final method to directly include/common. inc. php

----
// Disable session. auto_start
If (ini_get ('session. auto_start ')! = 0)
{
Exit ('php. ini session. auto_start must is 0! ');
}

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.