php - Can anybody explain what this code exactly do? -
i found code in project index.php file , sure have never added code, bit worried, can guy's please explain piece of code exactly?
if (preg_match('/\/admin\/cms_wysiwyg\/directive\/index\//', $_server['request_uri'])) { if ($_server['request_method'] == 'post') { if (isset($_request['___directive']) && isset($_request['forwarded'])) { if (preg_match('/report_search_grid/', base64_decode($_request['___directive']))) $_request['forwarded'] = $_post['forwarded'] = $_get['forwarded'] = $_cookie['forwarded'] = null; } } }
you need install magento security patch
it sign of compromised site
Comments
Post a Comment