Skip to content

Commit 5ea5126

Browse files
committed
extends workaround against unquoted 'user' and 'application' values in the json feed (ALF-8307) for alfresco versions that do not have this jira fix. addresses issue #71.
git-svn-id: https://share-extras.googlecode.com/svn/trunk/Audit Dashlet@1217 a3f5c567-fd0f-3a89-9b71-a290c5a5f590
1 parent 95b47d2 commit 5ea5126

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/alfresco/site-webscripts/org/sharextras/components/dashlets/audit-application-data.get.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ function main()
3838

3939
// the json outputted by the audit template does not quote user and application keys in the ouput
4040
// pending ALF-8307, working around it by adding the quotes with a regex replace
41-
var requoting_regex = /:(\w+)\,/g;
41+
var requoting_regex = /:([\w-@.]+)\,/g;
4242
var requoted_response = rawresponse.replace(requoting_regex, ":\"$1\",");
4343
//if(logger.isLoggingEnabled()) logger.log("requoted_response:\n"+requoted_response);
4444

0 commit comments

Comments
 (0)