about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLaurentiu Nicola <lnicola@dend.ro>2017-11-15 19:32:25 +0200
committerLaurentiu Nicola <lnicola@dend.ro>2017-11-15 19:33:08 +0200
commitcca6cf3febd0eb31f95325bc7a8815509a9d1c26 (patch)
treebe13d1355381d1d676d9ad6d241d591bdcbc6da6
parentce2b8a4944f1983759cb7d0e8d35a8bb889dbee6 (diff)
downloadrust-cca6cf3febd0eb31f95325bc7a8815509a9d1c26.tar.gz
rust-cca6cf3febd0eb31f95325bc7a8815509a9d1c26.zip
Escape doc root URLs
-rw-r--r--src/librustdoc/html/render.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs
index 69eaf24289b..e848a8d3853 100644
--- a/src/librustdoc/html/render.rs
+++ b/src/librustdoc/html/render.rs
@@ -1683,7 +1683,7 @@ impl<'a> Item<'a> {
             format!("{}-{}", self.item.source.loline, self.item.source.hiline)
         };
         Some(format!("{root}src/{krate}/{path}#{lines}",
-                     root = root,
+                     root = Escape(&root),
                      krate = krate,
                      path = path,
                      lines = lines))