We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 816f3f2 commit 39fc1ffCopy full SHA for 39fc1ff
examples/web-file-browser/src/com/dropbox/core/examples/web_file_browser/DropboxBrowse.java
@@ -114,7 +114,8 @@ else if (listing.entry instanceof DbxEntry.Folder) {
114
// Listing of folder contents.
115
out.println("<ul>");
116
for (DbxEntry child : listing.children) {
117
- out.println(" <li><a href='/browse?path=" + escapeHtml4(child.path) + "'>" + escapeHtml4(child.name) + "</a></li>");
+ String href = "/browse?path=" + DbxRequestUtil.encodeUrlParam(child.path);
118
+ out.println(" <li><a href='" + escapeHtml4(href) + "'>" + escapeHtml4(child.name) + "</a></li>");
119
}
120
out.println("</ul>");
121
0 commit comments