Skip to content
  • Aaron Wells's avatar
    sanitize_url() should return false, when given a null URL (Bug 1497411) · 2389c72b
    Aaron Wells authored
    It turns out that if you pass NULL to parse_url(), it returns:
    array('path'=>''). Since we were checking isset($parsedurl['path']), this
    returns true, even though the url was bad.
    
    behatnotneeded: Already covered by existing tests
    
    Change-Id: I5f4a6074981e6853988225858c22d9dcb0c43feb
    2389c72b