NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
cfreund
Mar 25, 2013Follower
PHPShell 'ereg'correction
ereg function has been DEPRECATED as of PHP 5.3.0. Relying on this feature is highly discouraged.
Changes in phpshell.php:
Changes in phpshell.php:
Line 179:
old: if (ereg('^[[:blank:]]*cd[[:blank:]]*$', $command)) {
new: if (preg_match("/^[[:blank:]]*cd[[:blank:]]*$/i", $command)) {
old: elseif (ereg('^[[:blank:]]*cd[[:blank:]]+([^;]+)$', $command, $regs)) {
new: elseif (preg_match("/^[[:blank:]]*cd[[:blank:]]+([^;]+)$/i", $command, $regs)) {
1 Reply
Replies have been turned off for this discussion
- super_poussinVirtuosowill produce something better quickly
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!