From 579d6085ca7deaf031368b077f797ecb8ff95623 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Thu, 27 Mar 2008 19:15:59 +0000 Subject: [PATCH] fixed: Rich editor image uploader doesn't follow size limits --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Form/HTMLArea.pm | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 0bd2d4f3e..dd46aa505 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -1,5 +1,6 @@ 7.5.9 - fixed: Collaboration System attachments follow site's max size instead of CS's + - fixed: Rich editor image uploader doesn't follow size limits 7.5.8 - moved Gallery utility methods to WebGUI::Utility::Gallery diff --git a/lib/WebGUI/Form/HTMLArea.pm b/lib/WebGUI/Form/HTMLArea.pm index e4dd42f12..13a8adb4d 100644 --- a/lib/WebGUI/Form/HTMLArea.pm +++ b/lib/WebGUI/Form/HTMLArea.pm @@ -539,11 +539,12 @@ sub www_addImageSave { groupIdView => $session->form->process('groupIdView') || $base->get('groupIdView'), ownerUserId => $session->user->userId, isHidden => 1, - }); + }); $child->update({url => $child->fixUrl}); - } - $session->http->setRedirect($base->getUrl('op=formHelper;class=HTMLArea;sub=imageTree')); - return undef; + $child->applyConstraints; + } + $session->http->setRedirect($base->getUrl('op=formHelper;class=HTMLArea;sub=imageTree')); + return undef; }