Executing PHP command giving error.
Closed this issue · 1 comments
GoogleCodeExporter commented
What steps will reproduce the problem?
1. In firefox hit the client.php
2. Check php and execute a command
3. It gives error
"php$ <?php echo "hello";
<br />
<b>Parse error</b>: syntax error, unexpected '<' in
<b>/private/var/www/shell/lib/shell.php(45) : eval()'d code</b> on line
<b>1</b><br />
"
What is the expected output? What do you see instead?
Expected to execute the php code
What version of the product are you using? On what operating system?
Latest code checked out from svn, on FF3, on Mac os X Leopard
Please provide any additional information below.
add $cmd=stripslashes($cmd); in function execPHP to fix it.
Original issue reported on code.google.com by sonyj...@gmail.com on 21 May 2009 at 5:26
GoogleCodeExporter commented
Fixed.
added $cmd=stripslashes($cmd); in function execPHP to fix it.
Original comment by sonyj...@gmail.com on 22 May 2009 at 7:17
- Changed state: Fixed