mirror of
https://github.com/scm-manager/scm-manager.git
synced 2026-06-20 16:41:22 +02:00
Put default for xsrf environment key
Otherwise the python script scmhooks.py fails, because the environment access with a missing key raises an error.
This commit is contained in:
@@ -139,6 +139,8 @@ public final class HgEnvironment
|
||||
Object xsrf = claims.get("xsrf");
|
||||
if (xsrf != null) {
|
||||
environment.put(SCM_XSRF, xsrf.toString());
|
||||
} else {
|
||||
environment.put(SCM_XSRF, "-");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user