Skip to content

Commit 89630ec

Browse files
nickkralAndroid (Google) Code Review
authored andcommitted
Merge "ClipData: html attribute values should always be escaped" into jb-mr1-dev
2 parents 72787c1 + c92db39 commit 89630ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/android/content/ClipData.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ private CharSequence coerceToHtmlOrStyledText(Context context, boolean styled) {
563563
private String uriToHtml(String uri) {
564564
StringBuilder builder = new StringBuilder(256);
565565
builder.append("<a href=\"");
566-
builder.append(uri);
566+
builder.append(Html.escapeHtml(uri));
567567
builder.append("\">");
568568
builder.append(Html.escapeHtml(uri));
569569
builder.append("</a>");

0 commit comments

Comments
 (0)