mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Fix bug 122041 "get illegal url when having foo.html?http://norris.html"
This commit is contained in:
parent
b6a9c42189
commit
74ff9e9d38
@ -617,7 +617,7 @@ lm_CheckURL(JSContext *cx, const char *url_string, JSBool checkFile)
|
||||
MochaDecoder *decoder;
|
||||
|
||||
protocol = NET_ParseURL(url_string, GET_PROTOCOL_PART);
|
||||
if (!protocol || *protocol == '\0') {
|
||||
if (!protocol || *protocol == '\0' || XP_STRCHR(protocol, '?')) {
|
||||
lo_TopState *top_state;
|
||||
|
||||
obj = JS_GetGlobalObject(cx);
|
||||
|
Loading…
x
Reference in New Issue
Block a user