Skip to content

Commit cca6cf3

Browse files
committed
Escape doc root URLs
1 parent ce2b8a4 commit cca6cf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/render.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,7 @@ impl<'a> Item<'a> {
16831683
format!("{}-{}", self.item.source.loline, self.item.source.hiline)
16841684
};
16851685
Some(format!("{root}src/{krate}/{path}#{lines}",
1686-
root = root,
1686+
root = Escape(&root),
16871687
krate = krate,
16881688
path = path,
16891689
lines = lines))

0 commit comments

Comments
 (0)