fixed [ 1323272 ] Site modifications using GET in stead of POST
This commit is contained in:
parent
05071de5bb
commit
836adc1c8f
2 changed files with 7 additions and 0 deletions
|
|
@ -41,6 +41,7 @@
|
|||
- fix [ 1327237 ] 6.7.5 Shortcuts
|
||||
- fix [ 1328105 ] Pages should contain "no-cache" tags
|
||||
- fix [ 1216810 ] anonymous registration errors persist
|
||||
- fix [ 1323272 ] Site modifications using GET in stead of POST
|
||||
|
||||
|
||||
6.7.6
|
||||
|
|
|
|||
|
|
@ -84,6 +84,12 @@ sub page {
|
|||
my $assetUrl = shift;
|
||||
my $fastcgi = shift;
|
||||
WebGUI::Session::open($webguiRoot,$configFile,$fastcgi) unless ($useExistingSession);
|
||||
if ($session{env}{HTTP_X_MOZ} eq "prefetch") { # browser prefetch is a bad thing
|
||||
WebGUI::HTTP::setStatus("403","We don't allow prefetch, because it increases bandwidth, hurts stats, and can break web sites.");
|
||||
my $output = WebGUI::HTTP::getHeader();
|
||||
WebGUI::Session::close();
|
||||
return $output;
|
||||
}
|
||||
return _upgrading($webguiRoot) if ($session{setting}{specialState} eq "upgrading");
|
||||
return _setup() if ($session{setting}{specialState} eq "init");
|
||||
my $output = _processOperations();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue