Skip to content

Commit 8f557bf

Browse files
committed
Add a couple more escapes to account for the production servers slash handling.
1 parent 74a2726 commit 8f557bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function createPatternNode($row) {
112112
$tool = idx($row, 'state');
113113

114114
// Replace a few hidden characters with there string counterparts. Otherwise JSON parsing will break.
115-
$tool = preg_replace(["/\n/", "/\r/", "/\t/"], ["\\\\n", "\\\\r", "\\\\t"], $tool);
115+
$tool = preg_replace(["/\n/", "/\r/", "/\t/"], ["\\\\\\n", "\\\\\\r", "\\\\\\t"], $tool);
116116
$tool = json_decode($tool);
117117

118118
$replace = idx($row, 'replace');

0 commit comments

Comments
 (0)