[ic] area tag encoding dash in sku to %2d

Mike Heins mikeh at endpoint.com
Sat Jun 10 12:43:07 UTC 2017

Quoting Peter (peter at pajamian.dhs.org):
> On 10/06/17 23:32, Mike Heins wrote:
> >> GlobalSub <<<EOR
> > 
> > I think you have one too many < in the here doc. Should work fine, though.
> Oops, you're right.  Score one for the typo monster.
> > We could consider defining that string in Vend::Util like is done
> > for HTML::Entities, but the above is the functional equivalent and not
> > difficult to do.
> I suppose you could also do:
> GlobalSub <<<EOR
> sub override_hacking {
>     package Vend::Util;
> 	*hexify = \&HTML::Entities::encode_entities;
> }
> ...or something like that.  In fact, is there any reason why we should
> keep using hexify when we are using encode_entities everywhere else?

Because CGI urlencoding is not the same. It might be nice to have a pragma
or directive to route hexify, as you have done, but to change the behavior
would introduce an element of risk to applications I would not be willing
to take on.

Mike Heins
End Point -- Expert Internet Consulting    http://www.endpoint.com/
phone +1.765.253.4194  <mikeh at endpoint.com>

Opportunity is missed by most people because it is dressed in
overalls and looks like work. -- Thomas Edison

More information about the interchange-users mailing list