FCLT#57184 Putorders technische adressen oof file: ondersteunen
svn path=/Website/branches/v2019.1/; revision=41882
This commit is contained in:
@@ -200,7 +200,7 @@ else
|
||||
if (arr.length > 1)
|
||||
{
|
||||
protocol = arr[0].toLowerCase() + ":";
|
||||
if (protocol != "mailto:")
|
||||
if (protocol != "mailto:" && protocol != "file:")
|
||||
protocol += "//";
|
||||
prs_url = prs_url.substr(protocol.length);
|
||||
}
|
||||
@@ -208,6 +208,7 @@ else
|
||||
+ " UNION SELECT 'https://', 'https://' FROM DUAL"
|
||||
+ " UNION SELECT 'http://', 'http://' FROM DUAL"
|
||||
+ " UNION SELECT 'ftp://', 'ftp://' FROM DUAL"
|
||||
+ " UNION SELECT 'file:', 'file:' FROM DUAL"
|
||||
+ " ORDER BY 1";
|
||||
FCLTselector('protocol', sql,
|
||||
{ label: L("lcl_prs_bedrijfadres_protocol"),
|
||||
|
||||
@@ -182,11 +182,15 @@ function ConnectorCls()
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
if (!URLAdres.match(/\\\$/))
|
||||
case "file":
|
||||
{ // voorbeeld: "file:c:\\folder\\"
|
||||
this.ConnectionType = CONNECTION_FILE;
|
||||
Log2File(2, "Creating file connector");
|
||||
|
||||
URLAdres = this.url.substr(this.url.indexOf(":")+1); // Alles achter file:
|
||||
if (!URLAdres.match(/\\\\/))
|
||||
{
|
||||
URLAdres = URLAdres + "\\";
|
||||
URLAdres = URLAdres + "\\"; // aan het eind moet een "\" staan
|
||||
}
|
||||
var fso = new ActiveXObject("Scripting.FileSystemObject");
|
||||
if (fso.FolderExists(URLAdres))
|
||||
@@ -195,9 +199,16 @@ function ConnectorCls()
|
||||
if (S("puo_lcl_friendly_file"))
|
||||
this.friendlyurl = S("puo_lcl_friendly_file").format(URLAdres);
|
||||
}
|
||||
|
||||
this.ConnectionType = (this.Connected ? CONNECTION_FILE : CONNECTION_NONE);
|
||||
Log2File(2, "protocol: " + (this.Connected ? "file" : "none"));
|
||||
else
|
||||
{
|
||||
Log2File(0, "Error: directory " + URLAdres + " does not exist");
|
||||
}
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
this.ConnectionType = CONNECTION_NONE;
|
||||
Log2File(2, "protocol: none");
|
||||
}
|
||||
} // switch
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user