- Is this code vunerable to \0 php
- if (file_exists('controllers/' . $controller . '.php'))
- $_action = ( (isset($_GET['r']) && ctype_alnum($_GET['r'])) ? $_GET['r'] : $_default );
- php > $a = "abc def";
- php > echo strlen($a);
- 7
- $tmp_name = "some random value";
- if (!file_exists($tmp_name)) {
- file_put_contents($tmp_name, "something very critical");
- }