Index: trunk/extensions/DonationInterface/gateway_common/DonationData.php |
— | — | @@ -252,7 +252,7 @@ |
253 | 253 | */ |
254 | 254 | public function getVal_Escaped( $key ) { |
255 | 255 | if ( $this->isSomething( $key ) ) { |
256 | | - return $this->sanitizeInput( $this->normalized[$key] ); |
| 256 | + return $this->sanitizeInput( $this->normalized[$key], $key ); |
257 | 257 | } else { |
258 | 258 | return null; |
259 | 259 | } |
— | — | @@ -477,10 +477,11 @@ |
478 | 478 | * Intended to be used with something like array_walk. |
479 | 479 | * |
480 | 480 | * @param $value The value of the array |
| 481 | + * @param $key The key of the array |
481 | 482 | * @param $flags The flag constant for htmlspecialchars |
482 | 483 | * @param $double_encode Whether or not to double-encode strings |
483 | 484 | */ |
484 | | - protected function sanitizeInput( &$value, $flags=ENT_COMPAT, $double_encode=false ) { |
| 485 | + protected function sanitizeInput( &$value, $key, $flags=ENT_COMPAT, $double_encode=false ) { |
485 | 486 | $value = htmlspecialchars( $value, $flags, 'UTF-8', $double_encode ); |
486 | 487 | } |
487 | 488 | |