From: Evgeny Zajcev <lg.zevlg@gmail.com>
To: Alan Third <alan@idiocy.org>, Evgeny Zajcev <lg.zevlg@gmail.com>,
Eli Zaretskii <eliz@gnu.org>, emacs-devel <emacs-devel@gnu.org>
Subject: Re: Loading svg from memory using custom filename for base_uri
Date: Thu, 3 Dec 2020 19:54:25 +0300 [thread overview]
Message-ID: <CAO=W_Zq26RbYqrSAwd1mnNpH-TShd-o9+jYkvLG-d2pb77nNyQ@mail.gmail.com> (raw)
In-Reply-To: <X8kSohBd9P6xOYJV@breton.holly.idiocy.org>
[-- Attachment #1: Type: text/plain, Size: 1536 bytes --]
чт, 3 дек. 2020 г. в 19:30, Alan Third <alan@idiocy.org>:
> On Thu, Dec 03, 2020 at 07:25:10PM +0300, lg.zevlg@gmail.com wrote:
> >
> > > 3 дек. 2020 г., в 19:17, Alan Third <alan@idiocy.org> написал(а):
> > >
> > > On Thu, Dec 03, 2020 at 06:47:37PM +0300, Evgeny Zajcev wrote:
> > >> diff --git a/src/xdisp.c b/src/xdisp.c
> > >> index 76ef420a36..51735b269d 100644
> > >> --- a/src/xdisp.c
> > >> +++ b/src/xdisp.c
> > >> @@ -34631,6 +34631,7 @@ syms_of_xdisp (void)
> > >> DEFSYM (QCeval, ":eval");
> > >> DEFSYM (QCpropertize, ":propertize");
> > >> DEFSYM (QCfile, ":file");
> > >> + DEFSYM (QCbase_uri, ":base-uri");
> > >> DEFSYM (Qfontified, "fontified");
> > >> DEFSYM (Qfontification_functions, "fontification-functions");
> > >
> > > Hi Evgeny, is there any reason this couldn't go in image.c? I think we
> > > only need it when librsvg is compiled in too.
> >
> > You are right, this is svg only thing, I’ll fix
>
> I'm also wondering whether this is something that would be useful when
> loading from a file and not just data? It might be considered a
> security risk, I suppose?
>
No risk, because `:base-uri` is part of image properties and not svg data.
And if one specified explicitly `:base-uri` then he knows what he is doing
and understands that loading an svg image could access files inside
`:base-uri`.
Having control over svg base_uri is a nice thing to have for both data and
file image specifiers.
I'll update the patch
--
lg
[-- Attachment #2: Type: text/html, Size: 2361 bytes --]
next prev parent reply other threads:[~2020-12-03 16:54 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-22 22:01 Loading svg from memory using custom filename for base_uri Evgeny Zajcev
2019-02-23 7:45 ` Eli Zaretskii
2019-02-25 10:23 ` Evgeny Zajcev
2020-12-03 15:47 ` Evgeny Zajcev
2020-12-03 16:16 ` Alan Third
2020-12-03 16:25 ` lg.zevlg
2020-12-03 16:30 ` Alan Third
2020-12-03 16:54 ` Evgeny Zajcev [this message]
2020-12-03 17:50 ` Evgeny Zajcev
2020-12-03 19:57 ` Alan Third
2020-12-03 22:11 ` Evgeny Zajcev
2020-12-03 23:02 ` Evgeny Zajcev
2020-12-12 5:46 ` lg.zevlg
2020-12-12 10:45 ` Alan Third
2020-12-12 11:52 ` Evgeny Zajcev
2020-12-12 12:50 ` Alan Third
2020-12-03 16:56 ` Vasilij Schneidermann
2020-12-03 16:50 ` Vasilij Schneidermann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAO=W_Zq26RbYqrSAwd1mnNpH-TShd-o9+jYkvLG-d2pb77nNyQ@mail.gmail.com' \
--to=lg.zevlg@gmail.com \
--cc=alan@idiocy.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).