forked from Wavyzz/dolibarr
Merge branch '20.0' of git@github.com:Dolibarr/dolibarr.git into develop
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2005-2016 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
* Copyright (C) 2005-2016 Regis Houssin <regis.houssin@inodbox.com>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024 Frédéric France <frederic.france@free.fr>
|
||||
* Copyright (C) 2024 MDW <mdeweerd@users.noreply.github.com>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
@@ -339,7 +340,7 @@ if ($modulepart == 'barcode') {
|
||||
|
||||
// If $code is virtualcard_xxx_999.vcf, it is a file to read to get code
|
||||
$reg = array();
|
||||
if (preg_match('/virtualcard_([^_]+)_(\d+)\.vcf/', $code, $reg)) {
|
||||
if (preg_match('/^virtualcard_([^_]+)_(\d+)\.vcf$/', $code, $reg)) {
|
||||
$vcffile = '';
|
||||
if ($reg[1] == 'user') {
|
||||
$vcffile = $conf->user->dir_temp.'/'.$code;
|
||||
|
||||
Reference in New Issue
Block a user