[librsvg/librsvg-2.50] css: Only allow css imports from the same base directory
- From: Federico Mena Quintero <federico src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librsvg/librsvg-2.50] css: Only allow css imports from the same base directory
- Date: Fri, 2 Oct 2020 19:24:35 +0000 (UTC)
commit d8bbca5846b01dd6904a6e97a7a4ba84684b20bd
Author: Lars Schmertmann <SmallLars t-online de>
Date: Thu Apr 23 17:35:53 2020 +0200
css: Only allow css imports from the same base directory
When A imports C, C was allowed to import B:
A.css
B.css
example/C.css
rsvg_internals/src/css.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/rsvg_internals/src/css.rs b/rsvg_internals/src/css.rs
index f1c91e35..0bb698ad 100644
--- a/rsvg_internals/src/css.rs
+++ b/rsvg_internals/src/css.rs
@@ -713,7 +713,7 @@ impl Stylesheet {
LoadingError::BadCss
})
})
- .and_then(|utf8| self.parse(&utf8, base_url))
+ .and_then(|utf8| self.parse(&utf8, Some(&aurl)))
}
/// Appends the style declarations that match a specified node to a given vector
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]