James Moger
2013-09-23 8b6653a82eceb8621c78b716911540564dadd4b7
Return cloned usermodel on cookie authentication
1 files modified
6 ■■■■■ changed files
src/main/java/com/gitblit/ConfigUserService.java 6 ●●●●● patch | view | raw | blame | history
src/main/java/com/gitblit/ConfigUserService.java
@@ -208,6 +208,12 @@
        if (cookies.containsKey(hash)) {
            model = cookies.get(hash);
        }
        if (model != null) {
            // clone the model, otherwise all changes to this object are
            // live and unpersisted
            model = DeepCopier.copy(model);
        }
        return model;
    }