Skip to content
Browse files

Added Request-Method-Filter

  • Loading branch information...
1 parent 90f479d commit 2e0cbbd8f953fc18f01bee3923c93d6c190947cb Frank Agerholm committed Apr 9, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 web/lib/class.Plugin_Artikels.php
View
8 web/lib/class.Plugin_Artikels.php
@@ -64,7 +64,9 @@ public function processInput() {
// Groesse checken
if( in_array($this->in_groesse,$art['groessen']) ) {
// Warenkorb aktualieren
- $this->addToBasket($art,$this->in_groesse,1);
+ if( $this->getRequestMethod() == Plugin::METHOD_GET || $this->getRequestMethod() == Plugin::METHOD_POST) {
+ $this->addToBasket($art,$this->in_groesse,1);
+ }
}
} else {
@@ -82,7 +84,9 @@ public function processInput() {
// Groesse checken
if( in_array($this->in_groesse,$art['groessen'],TRUE) ) {
// Warenkorb aktualieren
- $this->delFromBasket($art,$this->in_groesse,1);
+ if( $this->getRequestMethod() == Plugin::METHOD_GET || $this->getRequestMethod() == Plugin::METHOD_POST) {
+ $this->delFromBasket($art,$this->in_groesse,1);
+ }
} else {
}
} else {

0 comments on commit 2e0cbbd

Please sign in to comment.
Something went wrong with that request. Please try again.