*** /launchpad/lp-branches/devel/lib/lp/services/webapp/publication.py 2012-10-07 15:18:41.591680426 +0300 --- /launchpad/lp-branches/devel-kirils/lib/lp/services/webapp/publication.py 2012-10-07 15:46:53.964144750 +0300 *************** *** 153,160 **** # particular). return referrer = request.getHeader('referer') # Match HTTP spec misspelling. ! if not referrer: ! raise NoReferrerError('No value for REFERER header') # XXX: jamesh 2007-04-26 bug=98437: # The Zope testing infrastructure sets a default (incorrect) # referrer value of "localhost" or "localhost:9000" if no --- 153,161 ---- # particular). return referrer = request.getHeader('referer') # Match HTTP spec misspelling. ! # bugfix: Kirils Solovjovs linux-kirils 2012-10-07 bug=560246: ! #if not referrer: ! # raise NoReferrerError('No value for REFERER header') # XXX: jamesh 2007-04-26 bug=98437: # The Zope testing infrastructure sets a default (incorrect) # referrer value of "localhost" or "localhost:9000" if no *************** *** 284,290 **** principal = self.getPrincipal(request) request.setPrincipal(principal) self.maybeRestrictToTeam(request) ! maybe_block_offsite_form_post(request) def getPrincipal(self, request): """Return the authenticated principal for this request. --- 285,292 ---- principal = self.getPrincipal(request) request.setPrincipal(principal) self.maybeRestrictToTeam(request) ! # bugfix: Kirils Solovjovs linux-kirils 2012-10-07 bug=560246: ! #maybe_block_offsite_form_post(request) def getPrincipal(self, request): """Return the authenticated principal for this request.