Re:How to prevent a leak like Tumblr’s
by d0m on Saturday March 19, 2011 @11:18AM
(#2343775)
Well, arguably, the syntax checker could detect "valid but dangerous" PHP statements. So, for instance, if there is a terminating </php> but no <php>, that could be triggered as suspicious or dangerous. (I'm just saying this as a general example, but I know it might not be the best solution for different reasons).
Also, unit tests should definitely find that error.. no? I mean, a simple high level test that use something in config.php should fail.
Also, unit tests should definitely find that error.. no? I mean, a simple high level test that use something in config.php should fail.