Changeset 7723
- Timestamp:
- Jun 4, 2019, 1:58:03 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.15-stable/www/filemanager/files/download_file.jsp
r6308 r7723 31 31 import="net.sf.basedb.core.Permission" 32 32 import="net.sf.basedb.core.File" 33 import="net.sf.basedb.core.Path" 33 34 import="net.sf.basedb.core.Location" 34 35 import="net.sf.basedb.core.User" … … 61 62 { 62 63 File file = File.getById(dc, itemId); 63 String path = file.getPath().toString();64 Path path = file.getPath(); 64 65 String title = "Download " + path; 65 66 … … 70 71 } 71 72 72 String downloadUrl = root + "filemanager/files/download/-"+ID+"-"+ HTML.urlEncode(path);73 String downloadUrl = root + "filemanager/files/download/-"+ID+"-"+path.toURLString("UTF-8"); 73 74 %> 74 75 <base:page type="popup" title="<%=title%>"> … … 85 86 <tr> 86 87 <th>File</th> 87 <td><a href="<%=downloadUrl%>"><%=HTML.encodeTags(path )%></a></td>88 <td><a href="<%=downloadUrl%>"><%=HTML.encodeTags(path.toString())%></a></td> 88 89 </tr> 89 90 <tr>
Note: See TracChangeset
for help on using the changeset viewer.