more bug fixes
This commit is contained in:
parent
78274f1910
commit
c03e4f67dc
4 changed files with 19 additions and 0 deletions
|
|
@ -269,6 +269,17 @@ Any text string. Most likely will have been the Asset's name or title.
|
|||
sub fixUrl {
|
||||
my $self = shift;
|
||||
my $url = WebGUI::URL::urlize(shift);
|
||||
my @badUrls = ($session{config}{extrasURL}, $session{config}{uploadsURL});
|
||||
foreach my $badUrl (@badUrls) {
|
||||
if ($badUrl =~ /^http/) {
|
||||
$badUrl =~ s/^http.*\/(.*)$/$1/;
|
||||
} else {
|
||||
$badUrl =~ s/^\/(.*)/$1/;
|
||||
}
|
||||
if ($url =~ /^$badUrl/) {
|
||||
$url = "_".$url;
|
||||
}
|
||||
}
|
||||
if (length($url) > 250) {
|
||||
$url = substr($url,220);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -102,6 +102,7 @@ sub getOperations {
|
|||
'deleteGroupConfirm' => 'WebGUI::Operation::Group',
|
||||
'deleteGroupConfirm' => 'WebGUI::Operation::Group',
|
||||
'deleteGroupGrouping' => 'WebGUI::Operation::Group',
|
||||
'editGroup' => 'WebGUI::Operation::Group',
|
||||
'editGroupSave' => 'WebGUI::Operation::Group',
|
||||
'listGroups' => 'WebGUI::Operation::Group',
|
||||
'emailGroup' => 'WebGUI::Operation::Group',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue