VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: Belgaron on July 12, 2017, 15:21:35 PM

Title: Paypal does not show German special characters
Post by: Belgaron on July 12, 2017, 15:21:35 PM
Hi,

the Paypal plugin does not display German special characters on my site. Instead of e.g. 'Löwin' the article is renamed to 'Lowin'.

The Paypal plugin file \helper\paypal.php has the following code which is causing this issues on my site:

$name = preg_replace('/[^a-zA-Z0-9\s]/', '', $name);

When I change it to

$name = preg_replace('/[^a-zA-Z0-9äÄüÜöÖß\s]/', '', $name);

everything works as expected.

Is there a possibility that the Paypal plugin can get this change as a permanent modification? I do not want to modify the plugin code after each update.