Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,7 @@ private void indent() {
* @param value the URL value of the attribute to be added.
*/
public void appendUrlAttribute(final String name, final String value) {
write(' ');
write(name);
write("=\"");
if (value != null) {
write(WebUtilities.encodeUrl(value));
}
write('"');
appendAttribute(name, value);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public class LinkOptionsExample extends WPanel {
/**
* link URL.
*/
private static final String URL = "http://www.example.com";
private static final String URL = "http://www.example.com/&foo=fu%2Fbar";

private final WTextField tfUrlField = new WTextField();

Expand Down