From 18b3ae0dec117ec313b83fa314a7c5578f46e223 Mon Sep 17 00:00:00 2001 From: François Revel Date: Mon, 19 Mar 2012 03:19:03 +0000 Subject: Since nsurl wants to add // to url schemes, just abide by it. Third / separates the type and name. svn path=/trunk/netsurf/; revision=13534 --- beos/beos_fetch_rsrc.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'beos/beos_fetch_rsrc.cpp') diff --git a/beos/beos_fetch_rsrc.cpp b/beos/beos_fetch_rsrc.cpp index 04e0d1ebb..15b2000a4 100644 --- a/beos/beos_fetch_rsrc.cpp +++ b/beos/beos_fetch_rsrc.cpp @@ -157,13 +157,13 @@ static bool fetch_rsrc_process(struct fetch_rsrc_context *c) int32 id = 0; /* format of a rsrc: URL is: - * rsrc:[TYPE][@NUM]/name[,mime] + * rsrc://[TYPE][@NUM]/name[,mime] */ LOG(("*** Processing %s", c->url)); - if (strlen(c->url) < 6) { - /* 6 is the minimum possible length (rsrc:/) */ + if (strlen(c->url) < 7) { + /* 7 is the minimum possible length (rsrc://) */ msg.type = FETCH_ERROR; msg.data.error = "Malformed rsrc: URL"; fetch_rsrc_send_callback(&msg, c); @@ -171,7 +171,7 @@ static bool fetch_rsrc_process(struct fetch_rsrc_context *c) } /* skip the rsrc: part */ - params = c->url + sizeof("rsrc:") - 1; + params = c->url + sizeof("rsrc://") - 1; /* find the slash */ if ( (slash = strchr(params, '/')) == NULL) { -- cgit v1.2.3