1 | <?php |
||
10 | class RwHttpRequest extends HttpRequestA { |
||
11 | protected $aTaintedVars = array(); |
||
12 | |||
13 | /** |
||
14 | * returns the key of the first url parameter |
||
15 | * @return string |
||
|
|||
16 | */ |
||
17 | 1 | public function getFirstParameter() { |
|
21 | |||
22 | // this seems quite unsafe |
||
23 | 1 | public function setTaintedVars($aVars) { |
|
28 | |||
29 | /** |
||
30 | * returns the key of the last url parameter |
||
31 | * @return string |
||
32 | */ |
||
33 | 1 | public function getLastParameter() { |
|
37 | |||
38 | 18 | public function __construct() { |
|
45 | |||
46 | 1 | public function getTaintedVars() { |
|
49 | |||
50 | /** |
||
51 | * @param string $sVarName |
||
52 | * @return mixed|null |
||
53 | */ |
||
54 | 1 | protected function getTaintedVar($sVarName) { |
|
61 | |||
62 | 1 | public function getVars() { |
|
65 | |||
66 | 2 | public function getVar($sVarName) { |
|
73 | |||
74 | /** |
||
75 | * @todo this has to be moved in the rw url handler |
||
76 | * @return void |
||
77 | */ |
||
78 | 18 | public function constructTaintedVars() { |
|
91 | } |
||
92 |
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.