mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Merged V3.1 to HEAD
14031: Fix for ETHREEOH-1910 14044: Fix for ETHREEOH-1805 and ETHREEOH-1907 - SURF now uses POST for Alfresco Login and does not toString() CredentailVault impls git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@14054 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -376,20 +376,19 @@ public class PageTag extends TagSupport
|
||||
CCProperties ccProps = (CCProperties)FacesHelper.getManagedBean(fc, "CCProperties");
|
||||
if (ccProps.getWebdavUrl() != null || ccProps.getCifsPath() != null)
|
||||
{
|
||||
out.write("window.onload=onloadFunc('");
|
||||
out.write("window.onload=onloadFunc(\"");
|
||||
if (ccProps.getWebdavUrl() != null)
|
||||
{
|
||||
out.write(ccProps.getWebdavUrl());
|
||||
}
|
||||
out.write("','");
|
||||
out.write("\",\"");
|
||||
if (ccProps.getCifsPath() != null)
|
||||
{
|
||||
String val = ccProps.getCifsPath();
|
||||
val = Utils.replace(val, "\\", "\\\\"); // encode escape character
|
||||
val = Utils.replace(val, "'", "\\'"); // encode single quote as we wrap string with that
|
||||
out.write(val);
|
||||
}
|
||||
out.write("');");
|
||||
out.write("\");");
|
||||
|
||||
// reset session bean state
|
||||
ccProps.setCifsPath(null);
|
||||
|
Reference in New Issue
Block a user