From 1835c924cad2d8fd6f5ea7796e982db0da46c869 Mon Sep 17 00:00:00 2001 From: Stepan Anchugov Date: Thu, 21 Apr 2016 02:41:52 +0500 Subject: [PATCH] Add slashes to localization values This fixes #53 --- src/Passbook/Pass/Localization.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Passbook/Pass/Localization.php b/src/Passbook/Pass/Localization.php index 17436c2..353d19c 100644 --- a/src/Passbook/Pass/Localization.php +++ b/src/Passbook/Pass/Localization.php @@ -93,7 +93,7 @@ public function getStringsFileOutput() { $output = ''; foreach ($this->strings as $token => $value) { - $output .= '"' . $token . '" = "' . $value . '";' . PHP_EOL; + $output .= '"' . addslashes($token) . '" = "' . addslashes($value) . '";' . PHP_EOL; } return $output;