Commit 1538f1a2 by Tuomas Riihimäki

Fix api application authname generation fixing

Found with findbugs
1 parent 14334dff
...@@ -88,7 +88,7 @@ public class ApiApplicationBean implements ApiApplicationBeanLocal { ...@@ -88,7 +88,7 @@ public class ApiApplicationBean implements ApiApplicationBeanLocal {
String authname = permissionBean.getCurrentUser().getLogin() + "_" + application.getName() + "_" + currevent.getId() + "_" + currevent.getName(); String authname = permissionBean.getCurrentUser().getLogin() + "_" + application.getName() + "_" + currevent.getId() + "_" + currevent.getName();
// Replace all non-valid characters with '_' // Replace all non-valid characters with '_'
authname.replaceAll("[^a-zA-Z0-9._]", "_"); authname = authname.replaceAll("[^a-zA-Z0-9._]", "_");
// Ensure authname is unique; // Ensure authname is unique;
final String origAuthname = authname; final String origAuthname = authname;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!