Archived
1
0

Can give defense file without .xml

This commit is contained in:
Mercier Pierre-Olivier 2013-09-24 00:43:02 +02:00
parent e60879ca6e
commit 89f9c5c6d3

View File

@ -97,7 +97,7 @@ sub tag_defense
my $path; my $path;
if ($_[3]) if ($_[3])
{ {
if ($_[3] =~ /(?:defenses\/)?([a-zA-Z0-9\/]+)(?:.xml)/) { if ($_[3] =~ /^(?:defenses\/)?([a-zA-Z0-9\/]+)(?:.xml)?$/) {
$path = "defenses/".$1.".xml"; $path = "defenses/".$1.".xml";
} else { } else {
$path = $_[3]; $path = $_[3];