|
|
@ -446,10 +446,18 @@ namespace KPAC
|
|
|
|
if (!findObj.isValid() || !findObj.implementsCall())
|
|
|
|
if (!findObj.isValid() || !findObj.implementsCall())
|
|
|
|
throw Error( "No such function FindProxyForURL" );
|
|
|
|
throw Error( "No such function FindProxyForURL" );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
KURL cleanUrl = url;
|
|
|
|
|
|
|
|
cleanUrl.setPass(QString());
|
|
|
|
|
|
|
|
cleanUrl.setUser(QString());
|
|
|
|
|
|
|
|
if (cleanUrl.protocol().lower() == "https") {
|
|
|
|
|
|
|
|
cleanUrl.setPath(QString());
|
|
|
|
|
|
|
|
cleanUrl.setQuery(QString());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
Object thisObj;
|
|
|
|
Object thisObj;
|
|
|
|
List args;
|
|
|
|
List args;
|
|
|
|
args.append(String(url.url()));
|
|
|
|
args.append(String(cleanUrl.url()));
|
|
|
|
args.append(String(url.host()));
|
|
|
|
args.append(String(cleanUrl.host()));
|
|
|
|
Value retval = findObj.call( exec, thisObj, args );
|
|
|
|
Value retval = findObj.call( exec, thisObj, args );
|
|
|
|
|
|
|
|
|
|
|
|
if ( exec->hadException() ) {
|
|
|
|
if ( exec->hadException() ) {
|
|
|
|