Skip to content

Commit

Permalink
Update wording based on diag
Browse files Browse the repository at this point in the history
  • Loading branch information
dqwiki authored Jul 30, 2024
1 parent f346be5 commit a4e4928
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Appeal/PublicAppealController.php
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public function view(Request $request)
$weborigin = str_replace('http://','',str_replace('https://','',$request->header('origin')));
$envappurl = str_replace('http://','',str_replace('https://','',env('APP_URL')));
if($weborigin != $envappurl) {
abort(403, "Header mismatch - ".env('APP_URL'));
abort(403, "Header mismatch");
}
$appealkey = $request->input('appealkey');
$appeal = Appeal::where('appealsecretkey', '=', $appealkey)->first();
Expand All @@ -232,7 +232,7 @@ public function addComment(Request $request)
$weborigin = str_replace('http://','',str_replace('https://','',$request->header('origin')));
$envappurl = str_replace('http://','',str_replace('https://','',env('APP_URL')));
if($weborigin != $envappurl) {
abort(403);
abort(403, "Header mismatch");
}
$appealkey = $request->input('appealsecretkey');
$appeal = Appeal::where('appealsecretkey', $appealkey)->firstOrFail();
Expand Down

0 comments on commit a4e4928

Please sign in to comment.