Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
ae5d2563
Commit
ae5d2563
authored
Sep 21, 2016
by
Dominik Hebeler
Browse files
Slashes werden nun nicht mehr escaped
parent
20f95b1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Http/Controllers/MailController.php
View file @
ae5d2563
...
...
@@ -153,7 +153,7 @@ class MailController extends Controller
}
$output
=
json_encode
(
$data
,
JSON_PRETTY_PRINT
|
JSON_UNESCAPED_UNICODE
);
$output
=
json_encode
(
$data
,
JSON_PRETTY_PRINT
|
JSON_UNESCAPED_UNICODE
|
JSON_UNESCAPED_SLASHES
);
$output
=
preg_replace
(
"/\{/si"
,
"["
,
$output
);
$output
=
preg_replace
(
"/\}/si"
,
"]"
,
$output
);
$output
=
preg_replace
(
"/
\"
: ([
\"
\[])/si"
,
"
\"\t
=>
\t
$1"
,
$output
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment