From 2b6b8872dd78ffa08eba8053d9401be7ad0c313c Mon Sep 17 00:00:00 2001 From: JT Smith Date: Thu, 7 May 2009 16:26:32 +0000 Subject: [PATCH] URLs that shouldn't happen (#10353) --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Asset.pm | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 9b0559c8e..ec03b91f1 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,7 @@ - fixed #10336: postReceivedTemplateId not corrected in upgrade_7.6.0-7.6.1 (Jukka Raimovaara / Axxion Oy) - fixed: Crud handling of Form fields with database types that cannot have default values. - fixed: Crud serialization. + - fixed: URLs that shouldn't happen (#10353) - fixed: i18n typo in Survey exit URL hover help. - fixed: Survey jump target and jump expression precedence order across Section, Question, Answer. diff --git a/lib/WebGUI/Asset.pm b/lib/WebGUI/Asset.pm index a58a45336..7385d9618 100644 --- a/lib/WebGUI/Asset.pm +++ b/lib/WebGUI/Asset.pm @@ -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 {