MantisBT: master-1.2.x cb67e6a6

Author Committer Branch Timestamp Parent
dhx dhx master-1.2.x 2011-09-05 00:21 master-1.2.x cad51f20
Changeset

Remove use of filter_var(...) for master-1.2.x

Robert Munteanu correctly mentioned on the mailing list that the
master-1.2.x branch needs to work with PHP 5.1. The filter_var(...)
function is not available in PHP <5.2 and therefore we can't use it in
the master-1.2.x branch.

We can achieve similar results by removing all null characters from the
string (\0). This is OK for our use case which is the use of
$_SERVER['SCRIPT_NAME'] - a value that is set by the server and cannot
be manipulated by remote users (like PHP_SELF).

mod - config_defaults_inc.php Diff File