Skip to content

Commit c6d5bfc

Browse files
committed
add alt attribute to images
1 parent 51e6953 commit c6d5bfc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

opengrok-web/src/main/java/org/opengrok/web/PageConfig.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,7 @@ public Prefix getPrefix() {
10991099
*/
11001100
public String getPath() {
11011101
if (path == null) {
1102-
path = Util.getCanonicalPath(Laundromat.launderInput(
1103-
req.getPathInfo()), PATH_SEPARATOR);
1102+
path = Util.getCanonicalPath(Laundromat.launderInput(req.getPathInfo()), PATH_SEPARATOR);
11041103
if (PATH_SEPARATOR_STRING.equals(path)) {
11051104
path = "";
11061105
}

opengrok-web/src/main/webapp/xref.jspf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ org.opengrok.indexer.web.QueryParameters"
129129
defs, annotation, project);
130130
} else if (g == AbstractAnalyzer.Genre.IMAGE) {
131131
%></pre>
132-
<img src="<%= rawPath %>?<%= QueryParameters.REVISION_PARAM_EQ %><%= Util.URIEncode(rev) %>"/>
132+
<img src="<%= rawPath %>?<%= QueryParameters.REVISION_PARAM_EQ %><%= Util.URIEncode(rev) %>" alt="<%= path %>"/>
133133
<pre><%
134134
} else if (g == AbstractAnalyzer.Genre.HTML) {
135135
/*

0 commit comments

Comments
 (0)