--- loncom/publisher/lonpublisher.pm 2001/05/28 19:43:09 1.29 +++ loncom/publisher/lonpublisher.pm 2001/06/23 18:26:40 1.31 @@ -10,6 +10,8 @@ # 03/24,03/29,04/03 Gerd Kortemeyer # 04/16/2001 Scott Harrison # 05/03,05/05,05/07 Gerd Kortemeyer +# 05/28/2001 Scott Harrison +# 06/23 Gerd Kortemeyer package Apache::lonpublisher; @@ -747,8 +749,9 @@ sub handler { return HTTP_NOT_FOUND; } - unless (($cuname,$cudom)= - &Apache::loncacc::constructaccess($fn,$r->dir_config('lonDefDomain'))) { + ($cuname,$cudom)= + &Apache::loncacc::constructaccess($fn,$r->dir_config('lonDefDomain')); + unless (($cuname) && ($cudom)) { $r->log_reason($cuname.' at '.$cudom. ' trying to publish file '.$ENV{'form.filename'}. ' ('.$fn.') - not authorized',