|
@@ 2622-2624 (lines=3) @@
|
| 2619 |
|
$suffix = '~'; |
| 2620 |
|
if ($args['renames'] && is_array($args['renames'])) { |
| 2621 |
|
$renames = array_flip($args['renames']); |
| 2622 |
|
if (is_string($args['suffix']) && ! preg_match($ngReg, $args['suffix'])) { |
| 2623 |
|
$suffix = $args['suffix']; |
| 2624 |
|
} |
| 2625 |
|
} |
| 2626 |
|
if ($args['hashes'] && is_array($args['hashes'])) { |
| 2627 |
|
$hashes = array_flip($args['hashes']); |
|
@@ 2908-2910 (lines=3) @@
|
| 2905 |
|
$suffix = '~'; |
| 2906 |
|
if (! empty($args['renames'])) { |
| 2907 |
|
$renames = array_flip($args['renames']); |
| 2908 |
|
if (is_string($args['suffix']) && ! preg_match('/[\/\\?*:|"<>]/', $args['suffix'])) { |
| 2909 |
|
$suffix = $args['suffix']; |
| 2910 |
|
} |
| 2911 |
|
} |
| 2912 |
|
if (! empty($args['hashes'])) { |
| 2913 |
|
$hashes = array_flip($args['hashes']); |