mirror of
https://github.com/friendica/friendica
synced 2025-04-24 23:10:11 +00:00
Escape single quotes and backslashes
This commit is contained in:
parent
65d79d4c93
commit
dd88d193b9
3 changed files with 10 additions and 3 deletions
|
@ -75,7 +75,7 @@ class ConfigFileTransformer
|
|||
} elseif (is_numeric($value)) {
|
||||
$string .= $value . ",";
|
||||
} else {
|
||||
$string .= sprintf('\'%s\',', $value);
|
||||
$string .= sprintf('\'%s\',', addcslashes($value, '\'\\'));
|
||||
}
|
||||
|
||||
$string .= PHP_EOL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue