mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Don't try to parse a colon in a URL as a port
(e.g. http://www.host.name/foo:bar) PR: bin/5072 Submitted by: Takeshi WATANABE <watanabe@komadori.planet.kobe-u.ac.jp>
This commit is contained in:
parent
f1689b7f23
commit
93eb50393d
1 changed files with 2 additions and 2 deletions
|
|
@ -26,7 +26,7 @@
|
|||
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: http.c,v 1.23 1999/01/15 16:56:22 wollman Exp $
|
||||
* $Id: http.c,v 1.24 1999/01/15 17:10:31 wollman Exp $
|
||||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
|
|
@ -165,7 +165,7 @@ http_parse(struct fetch_state *fs, const char *u)
|
|||
strncat(hostname, p, q - p);
|
||||
p = slash;
|
||||
|
||||
if (colon && colon + 1 != slash) {
|
||||
if (q == colon && colon + 1 != slash) {
|
||||
unsigned long ul;
|
||||
char *ep;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue