mirror of
https://github.com/grocy/grocy.git
synced 2025-08-23 13:23:34 +00:00
Allow German Umlauts in OOF plugin product names (fixes #2740)
This commit is contained in:
@@ -58,7 +58,7 @@ class OpenFoodFactsBarcodeLookupPlugin extends BaseBarcodeLookupPlugin
|
||||
}
|
||||
|
||||
// Remove non-ASCII characters in product name (whyever a product name should have them at all)
|
||||
$name = preg_replace('/[^\x20-\x7E]/', '', $name);
|
||||
$name = preg_replace('/[^a-zA-Z0-9äöüÄÖÜß ]/', '', $name);
|
||||
|
||||
return [
|
||||
'name' => $name,
|
||||
|
Reference in New Issue
Block a user