Permalink
Browse files

JCR-1873 It should be possible to define how hrefs are generated for …

…WebDav

Stick to absolute URIs as the default.

git-svn-id: https://svn.apache.org/repos/asf/jackrabbit/trunk@1439797 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
1 parent 5a0f962 commit 90b78a68ab6cf3fd710806d94a35042008a93818 @jukka jukka committed Jan 29, 2013
@@ -174,7 +174,10 @@ public void init() throws ServletException {
log.info(INIT_PARAM_CSRF_PROTECTION + " = " + csrfParam);
//create absolute URI hrefs..
- createAbsoluteURI = Boolean.parseBoolean(getInitParameter(INIT_PARAM_CREATE_ABSOLUTE_URI));
+ String param = getInitParameter(INIT_PARAM_CREATE_ABSOLUTE_URI);
+ if (param != null) {
+ createAbsoluteURI = Boolean.parseBoolean(param);
+ }
log.info(INIT_PARAM_CREATE_ABSOLUTE_URI + " = " + createAbsoluteURI);
}

0 comments on commit 90b78a6

Please sign in to comment.