Skip to content

Commit

Permalink
Corrige un crash lors de la lecture du fichier config
Browse files Browse the repository at this point in the history
Le caractère " provoque un crash lors de la lecture, il faut
échapper ce caractère avec un antislash.
  • Loading branch information
Blount committed Jun 14, 2017
1 parent 471db00 commit 5cd0b99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Config/Lite.php
Expand Up @@ -201,6 +201,7 @@ protected function normalizeValue($value)
return $value;
}
if ($this->quoteStrings) {
$value = str_replace($this->delim, '\\'.$this->delim, $value);
$value = $this->delim . $value . $this->delim;
}
return $value;
Expand Down

0 comments on commit 5cd0b99

Please sign in to comment.