|
@@ -490,8 +490,7 @@ function netSaveProperty(inputCollection, hrefProperty, inputProperty, inputValu
|
490
|
490
|
function DAVresourceDelegation(inputResource, index, lastIndex)
|
491
|
491
|
{
|
492
|
492
|
globalCalDAVResourceSync=false;
|
493
|
|
- var re=new RegExp('^(https?://)([^/]+)(.*)', 'i');
|
494
|
|
- var tmp=inputResource.href.match(re);
|
|
493
|
+ var tmp=algoo_replace_regex(inputResource.href, globalAccountSettings);
|
495
|
494
|
|
496
|
495
|
var baseHref=tmp[1]+tmp[2];
|
497
|
496
|
var uidBase=tmp[1]+inputResource.userAuth.userName+'@'+tmp[2];
|
|
@@ -1039,8 +1038,7 @@ function netFindResource(inputResource, inputResourceIndex, forceLoad, indexR, l
|
1039
|
1038
|
return false;
|
1040
|
1039
|
}
|
1041
|
1040
|
|
1042
|
|
- var re=new RegExp('^(https?://)([^/]+)(.*)','i');
|
1043
|
|
- var tmp=inputResource.href.match(re);
|
|
1041
|
+ var tmp = algoo_replace_regex(inputResource.href, globalAccountSettings);
|
1044
|
1042
|
var uidBase=tmp[1]+inputResource.userAuth.userName+'@'+tmp[2];
|
1045
|
1043
|
var uidFull=tmp[1]+inputResource.userAuth.userName+'@'+tmp[2]+tmp[3]; // for the error handler
|
1046
|
1044
|
var settingsXML='';
|
|
@@ -1221,7 +1219,6 @@ function netFindResource(inputResource, inputResourceIndex, forceLoad, indexR, l
|
1221
|
1219
|
|
1222
|
1220
|
function netLoadResource(inputResource, inputHref, hrefMode, inputResourceIndex, forceLoad, indexR, loadArray)
|
1223
|
1221
|
{
|
1224
|
|
- var re=new RegExp('^(https?://)([^/]+)(.*)','i');
|
1225
|
1222
|
if(!isAvaible('CardDavMATE') || !globalCardDAVInitLoad || (globalCardDAVInitLoad && typeof inputResource.addressbookNo == 'undefined'))
|
1226
|
1223
|
inputResource.addressbookNo=0;
|
1227
|
1224
|
if(!isAvaible('CalDavZAP') || !globalCalDAVInitLoad || (globalCalDAVInitLoad && typeof inputResource.calendarNo=='undefined' && typeof inputResource.todoNo=='undefined'))
|
|
@@ -1229,7 +1226,7 @@ function netLoadResource(inputResource, inputHref, hrefMode, inputResourceIndex,
|
1229
|
1226
|
inputResource.calendarNo=0;
|
1230
|
1227
|
inputResource.todoNo=0;
|
1231
|
1228
|
}
|
1232
|
|
- var tmp=inputResource.abhref.match(re);
|
|
1229
|
+ var tmp = algoo_replace_regex(inputResource.abhref, globalAccountSettings);
|
1233
|
1230
|
var baseHref=tmp[1]+tmp[2];
|
1234
|
1231
|
var uidBase=tmp[1]+inputResource.userAuth.userName+'@'+tmp[2];
|
1235
|
1232
|
var uidFull=tmp[1]+inputResource.userAuth.userName+'@'+tmp[2]+tmp[3]; // for the error handler
|
|
@@ -1482,7 +1479,7 @@ function netLoadResource(inputResource, inputHref, hrefMode, inputResourceIndex,
|
1482
|
1479
|
var href=$(element).children().filterNsNode('href').text();
|
1483
|
1480
|
if(href.match(RegExp('^https?://','i'))!=null)
|
1484
|
1481
|
{
|
1485
|
|
- var tmpH = href.match(RegExp('^(https?://)([^/]+)(.*)','i'))
|
|
1482
|
+ var tmpH = algoo_replace_regex(href, globalAccountSettings);
|
1486
|
1483
|
if(tmpH!=null)
|
1487
|
1484
|
href = tmpH[3];
|
1488
|
1485
|
}
|
|
@@ -1708,7 +1705,7 @@ function netLoadResource(inputResource, inputHref, hrefMode, inputResourceIndex,
|
1708
|
1705
|
var href=$(element).children().filterNsNode('href').text();
|
1709
|
1706
|
if(href.match(RegExp('^https?://','i'))!=null)
|
1710
|
1707
|
{
|
1711
|
|
- var tmpH = href.match(RegExp('^(https?://)([^/]+)(.*)','i'))
|
|
1708
|
+ var tmpH = algoo_replace_regex(href, globalAccountSettings);
|
1712
|
1709
|
if(tmpH!=null)
|
1713
|
1710
|
href = tmpH[3];
|
1714
|
1711
|
}
|
|
@@ -1898,8 +1895,7 @@ function netLoadResource(inputResource, inputHref, hrefMode, inputResourceIndex,
|
1898
|
1895
|
}// Save the client settings (stored as DAV property on server)
|
1899
|
1896
|
function netSaveSettings(inputResource, inputSettings, isFormSave, collectionLoad)
|
1900
|
1897
|
{
|
1901
|
|
- var re=new RegExp('^(https?://)([^/]+)(.*)', 'i');
|
1902
|
|
- var tmp=inputResource.href.match(re);
|
|
1898
|
+ var tmp = algoo_replace_regex(inputResource.href, globalAccountSettings);
|
1903
|
1899
|
var baseHref=tmp[1]+tmp[2];
|
1904
|
1900
|
var uidBase=tmp[1]+inputResource.userAuth.userName+'@'+tmp[2];
|
1905
|
1901
|
var uidFull=tmp[1]+inputResource.userAuth.userName+'@'+tmp[2]+tmp[3]; //for the error handler
|