aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/util/url.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/util/url.rs')
-rw-r--r--src/components/util/url.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/util/url.rs b/src/components/util/url.rs
index 74571f84f5b..a3677dd6415 100644
--- a/src/components/util/url.rs
+++ b/src/components/util/url.rs
@@ -73,7 +73,7 @@ pub fn make_url(str_url: ~str, current_url: Option<Url>) -> Url {
// Drop whitespace within data: URLs, e.g. newlines within a base64
// src="..." block. Whitespace intended as content should be
// %-encoded or base64'd.
- str_url.iter().filter(|&c| !c.is_whitespace()).collect()
+ str_url.chars().filter(|&c| !c.is_whitespace()).collect()
},
_ => str_url
}