mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Webscript scripturl() method encoding now supported in PageRenderer website framework
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@6897 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -83,7 +83,17 @@ public final class ScriptUrlMethod implements TemplateMethodModelEx
|
||||
StringBuffer buf = new StringBuffer(128);
|
||||
buf.append(prefixServiceUrl ? req.getServicePath() : "");
|
||||
buf.append(arg);
|
||||
buf.append(arg.length() != 0 ? "&" : "");
|
||||
if (arg.length() != 0)
|
||||
{
|
||||
if (arg.indexOf('?') == -1)
|
||||
{
|
||||
buf.append('?');
|
||||
}
|
||||
else
|
||||
{
|
||||
buf.append('&');
|
||||
}
|
||||
}
|
||||
buf.append("guest=" + (req.isGuest() ? "true" : ""));
|
||||
if (req.getFormatStyle() == FormatStyle.argument)
|
||||
{
|
||||
|
Reference in New Issue
Block a user