3 ms·
If you disallow running encoded script in php as an argument to the `eval()` function, the code could just as well be run in javascript on the client side (alth
by viraptor 16y ago
If you disallow running encoded script in php as an argument to the `eval()` function, the code could just as well be run in javascript on the client side (although it's not as useful for search engine spamming anymore then).
Basically for printing out some text on the website, it doesn't matter whether you're running
<? echo eval($encrypted_code) ?>
on some php code or
<script>eval(encrypted_code)</script>
in JS. The only thing it protects you from is local exploits, not adding content.
- jacques_chester 16y agoAh. Yes. I see now.