more bug fixes

This commit is contained in:
JT Smith 2005-08-17 22:33:27 +00:00
parent 78274f1910
commit c03e4f67dc
4 changed files with 19 additions and 0 deletions

View file

@ -15,6 +15,8 @@
not get their properties copied from the previous revision.
- Set the rich editor to use a bigger font by default if no style sheet
specifically setting it was called.
- fix [ 1256549 ] Users are allowed to set url to extras or uploads
- fix [ 1262505 ] Unable to edit group info
6.7.0

View file

@ -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);
}

View file

@ -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',

View file

@ -0,0 +1,5 @@
/* If the site managers don't specify a style sheet to use with the rich editor, we do just to make it readable. */
body {
font-size: 15px;
}