From ed43059ee517708cc7eff4606baa5246e29621b2 Mon Sep 17 00:00:00 2001 From: Loveorigami Date: Sat, 26 Mar 2016 22:22:52 +0300 Subject: [PATCH] trim quotes --- src/controllers/DefaultController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/DefaultController.php b/src/controllers/DefaultController.php index 6c7553d..5a18f82 100644 --- a/src/controllers/DefaultController.php +++ b/src/controllers/DefaultController.php @@ -19,7 +19,7 @@ public function actionIndex() $layerClass = \Yii::$app->request->post('layerClass'); $options = \Yii::$app->request->post('options'); - $layerClass = str_replace('"', '', $layerClass); + $layerClass = trim($layerClass, '"'); $wrapper = new Wrapper([ 'layerClass' => $layerClass,