Improve URL checking to fix an issue with the style URL checker and to make it apply to WMS GetLegendGraphic requests.
Pull Request: https://github.com/geoserver/geoserver/pull/6979
Improve URL checking to fix an issue with the style URL checker and to make it apply to WMS GetLegendGraphic requests.