Commit db59cb5
committed
Fixed FreeMarker template resolution issue when OFBiz installation or component paths contain spaces (OFBIZ-10434) (#1226)
Updated FlexibleTemplateLoader#getURL() in FreeMarkerWorker to use:
`new File(locationUrl.toURI()).exists()`
This fixes template lookup failures caused by URL-encoded paths (%20)
when OFBiz or component directories contain spaces.
Thanks Jacques Le Roux for reporting the issue.1 parent 906bdb7 commit db59cb5
1 file changed
Lines changed: 3 additions & 4 deletions
Lines changed: 3 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
557 | 556 | | |
558 | 557 | | |
559 | 558 | | |
560 | | - | |
561 | 559 | | |
562 | | - | |
| 560 | + | |
| 561 | + | |
563 | 562 | | |
564 | 563 | | |
565 | 564 | | |
566 | | - | |
| 565 | + | |
567 | 566 | | |
568 | 567 | | |
569 | 568 | | |
| |||
0 commit comments