| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 70 | protected static function urlValidateHost($host)  | 
            ||
| 71 |     { | 
            ||
| 72 | return (  | 
            ||
| 73 |             preg_match("/^([a-z\d](-*[a-z\d])*)(\.([a-z\d](-*[a-z\d])*))*$/i", $host) //valid chars check | 
            ||
| 74 |             && preg_match("/^.{1,253}$/", $host) //overall length check | 
            ||
| 75 |             && preg_match("/^[^\.]{1,63}(\.[^\.]{1,63})*$/", $host) //length of each label | 
            ||
| 76 | );  | 
            ||
| 77 | }  | 
            ||
| 78 | |||
| 94 |