help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to escape a string which will be added as a ?key=value parameter


From: Yuri Khan
Subject: Re: How to escape a string which will be added as a ?key=value parameter in a url?
Date: Tue, 29 Sep 2015 11:25:33 +0600

On Tue, Sep 29, 2015 at 6:47 AM, Emanuel Berg <embe8573@student.uu.se> wrote:
> Yuri Khan <yuri.v.khan@gmail.com> writes:
>
>> Blindly substituting the value for %s in a format
>> string, as Emanuel suggests, is definitely not the
>> right thing.
>
> Here is another example:
>        http://user.it.uu.se/~embe8573/conf/emacs-init/isbn.el
>
> ...and observe what cool things you can do outside the
> realm of schoolbook scholasticism!

Look, Emanuel, we all know string concatenation works when you
absolutely know that your substituted values do not contain any funny
characters. Marcin specifically asked for a function that is robust in
presence of characters which are conventionally used as key/value/pair
separators in URI query strings.

See also a small excerpt from the biography of one boy named Robert:
https://xkcd.com/327/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]