URLs that shouldn't happen (#10353)

This commit is contained in:
JT Smith 2009-05-07 16:26:32 +00:00
parent 19b333067e
commit 2b6b8872dd
2 changed files with 2 additions and 1 deletions

View file

@ -698,7 +698,7 @@ sub fixUrl {
# check to see if the url already exists or not, and increment it if it does
if ($self->urlExists($self->session, $url, {assetId=>$self->getId})) {
my @parts = split(/\./,$url);
if ($parts[0] =~ /(.*)(\d+$)/) {
if ($parts[0] =~ /(.*?)(\d+$)/) {
$parts[0] = $1.($2+1);
}
else {