Skip to content

Commit

Permalink
Fixed
Browse files Browse the repository at this point in the history
- Issue where explicit use of a namespace variable in the svg function failed due to a recent security update
craftcms/cms#3337
  • Loading branch information
Mark Notton committed Oct 15, 2018
1 parent 3cdcc7a commit 652022d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/twigextensions/Svg.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function getFunctions():array {
* @return string
*
*/
public function svg() {
public function svg($svg, $sanitize = true, $namespace = null, $classes = null, $id = null) {

// Fail if no parameters are passed
if ( func_num_args() < 1 ){
Expand All @@ -48,10 +48,6 @@ public function svg() {
// Remove the first argument and set the arguments array
$arguments = array_slice(func_get_args(), 1);

$sanitize = true;
$classes = null;
$id = null;

// Run through the settings and define the appropriate variables
if ( isset($arguments) ){
foreach ($arguments as &$setting) {
Expand Down

0 comments on commit 652022d

Please sign in to comment.