Skip to content

Commit b89a669

Browse files
committed
sanitize revision
1 parent 27968d6 commit b89a669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ private boolean getFileRevision(DiffData data, String context, String[] filepath
246246
* The code below extracts file path and revision from the URI.
247247
*/
248248
for (int i = 1; i <= 2; i++) {
249-
String p = req.getParameter(QueryParameters.REVISION_PARAM + i);
249+
String p = Laundromat.launderRevision(req.getParameter(QueryParameters.REVISION_PARAM + i));
250250
if (p != null) {
251251
int j = p.lastIndexOf("@");
252252
if (j != -1) {

0 commit comments

Comments
 (0)