News:

Looking for documentation? Take a look on our wiki

Main Menu

+ in billing name and phone becomes a space (VM 4.8.4)

Started by sandomatyas, Yesterday at 17:19:30 PM

Previous topic - Next topic

sandomatyas

VirtueMart 4.8.4. After checkout, a literal + in the billing name and phone is stored as a space. B+T Vill. Ltd becomes B T Vill. Ltd. A leading + on a phone number disappears.

prepareFieldDataSave() reads every user field with vRequest::getString($name, '', $data). Because the third argument is the already decoded data array, getString() calls filterUrl(), which runs urldecode(). PHP has already decoded the POST, so + becomes a space.