Skip to content
This repository has been archived by the owner on Jun 3, 2024. It is now read-only.

Commit

Permalink
remove base64 encoding check when saving template
Browse files Browse the repository at this point in the history
  • Loading branch information
Qoraiche committed Mar 28, 2019
1 parent 46763c9 commit 2a2db2b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Http/Controllers/MailablesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,18 @@ public function parseTemplate(Request $request)

$template = $request->has('template') ? $request->template : false;

if( mailEclipse::markdownedTemplateToView(true, $request->markdown, base64_decode($request->viewpath), $template) ){
$viewPath = $request->has('template') ? $request->viewpath : base64_decode($request->viewpath);

if( mailEclipse::markdownedTemplateToView(true, $request->markdown, $viewPath, $template) ){

return response()->json([
'status' => 'ok',
]);
}

return response()->json([
'status' => 'error',
]);
'status' => 'error',
]);

}

Expand Down

0 comments on commit 2a2db2b

Please sign in to comment.