[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date
][Minivend by thread
]
Re: [mv] URL Quote in Minivend
****** message to minivend-users from Stefan Hornburg <racke@linuxia.de> ******
"Nestor A. Diaz L." <nestor@tiendalinux.com> writes:
> ****** message to minivend-users from "Nestor A. Diaz L." <nestor@tiendalinux.com> ******
>
> HI, i'm trying to make a reference to a dinamically generated image in PHP
> from minivend.
>
> I explain (consider the following):
>
> <img src="/consignacion.php?telefono=[valuephone_day]&efectivo=[total-cost]&consigna=[value name escaped]">
>
> Well, the url will fail if i don't quote the URL, i.e.:
>
> <img src="/consignacion.php?telefono=3450605&efectivo=$5.000&consigna=Nestor A. Diaz L.">
>
Try [value name=name filter=urlencode], but their is a bug in
MiniVend. Fix the filter in Interpolate.pm:
'urlencode' => sub {
my $val = shift;
$val =~ s|([^\w:])|sprintf "%%%02x", ord $1|eg;
return $val;
},
Ciao
Racke
--
LinuXia Systems && Cobolt NetServices, eCommerce and more
Shop- und Datenbanklösungen mit MiniVend, Firewalls auf Debian-Basis
http://www.linuxia.de - http://www.cobolt.net
--> Junior Officer of the MiniVend/Interchange Bug Patrol <---
-
To unsubscribe from the list, DO NOT REPLY to this message. Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list