X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=include%2Fxorg.misc.inc.php;h=eefbfb291e76dde37d32f0d9cad3a621196d0ebc;hb=06df222b7962dd5b71b34ec1dd078276d7327dbc;hp=b025e7a465e3ddaee6d5f2f3994bfad8ccd01af7;hpb=53ee429b076f679168fda0301651a21b00ddf0e3;p=platal.git diff --git a/include/xorg.misc.inc.php b/include/xorg.misc.inc.php index b025e7a..eefbfb2 100644 --- a/include/xorg.misc.inc.php +++ b/include/xorg.misc.inc.php @@ -235,6 +235,9 @@ function make_forlife($prenom, $nom, $promo) function ip_to_uint($ip) { $part = explode('.', $ip); + if (count($part) != 4) { + return null; + } $v = 0; $fact = 0x1000000; for ($i = 0 ; $i < 4 ; ++$i) {