bugfix [ 1263934 ] 6.6.5 Import Scripts Asset URLs
This commit is contained in:
parent
d39e649906
commit
a1471d17b6
2 changed files with 6 additions and 2 deletions
|
|
@ -283,7 +283,10 @@ sub fixUrl {
|
|||
if (length($url) > 250) {
|
||||
$url = substr($url,220);
|
||||
}
|
||||
if ($session{setting}{urlExtension} ne "" && !($url =~ /\./)) {
|
||||
if ($session{setting}{urlExtension} ne "" #don't add an extension if one isn't set
|
||||
&& !($url =~ /\./) #don't add an extension of the url already contains a dot
|
||||
&& $self->get("url") eq $self->getId # only add it if we're creating a new url
|
||||
) {
|
||||
$url .= ".".$session{setting}{urlExtension};
|
||||
}
|
||||
my ($test) = WebGUI::SQL->quickArray("select url from assetData where assetId<>".quote($self->getId)." and url=".quote($url));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue