diff options
author | Christian Persch <chpe@gnome.org> | 2012-01-26 21:17:31 +0100 |
---|---|---|
committer | Christian Persch <chpe@gnome.org> | 2012-01-26 21:17:31 +0100 |
commit | a2e869cb700c13804056820fd4afa215e551b9c5 (patch) | |
tree | 86506a485f85272d251bac8bb1f9ae7008dac2d0 /rsvg-filter.c | |
parent | cd6700bb4852466bd1d700774c0fce4dde25c6e6 (diff) | |
download | librsvg-a2e869cb700c13804056820fd4afa215e551b9c5.tar.gz |
Add permission check before loading other files
Wrap _rsvg_io_acquire_* in _rsvg_handle_acquire_* that first
checks whether the load should be allowed. For the moment, always allow
the load; more restricted policies will be introduced in a follow-up commit.
Diffstat (limited to 'rsvg-filter.c')
-rw-r--r-- | rsvg-filter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rsvg-filter.c b/rsvg-filter.c index f16c3d47..53e0f590 100644 --- a/rsvg-filter.c +++ b/rsvg-filter.c @@ -3556,8 +3556,8 @@ rsvg_filter_primitive_image_render_ext (RsvgFilterPrimitive * self, RsvgFilterCo if (width == 0 || height == 0) return NULL; - img = rsvg_cairo_surface_new_from_href (upself->href->str, - rsvg_handle_get_base_uri (upself->ctx), + img = rsvg_cairo_surface_new_from_href (upself->ctx, + upself->href->str, NULL); if (!img) return NULL; |