Skip to content

Commit

Permalink
Temporarily avoid MpdfException pcre.backtrack_limit
Browse files Browse the repository at this point in the history
  • Loading branch information
spapad committed Sep 11, 2018
1 parent b3dc4ff commit 27da075
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ public function actionViewDenials()
public function actionPrintApplications($applicantId = null)
{
Yii::trace('Application print: ' . ($applicantId === null ? "ALL" : "for {$applicantId}"), 'admin');
ini_set("pcre.backtrack_limit", "5000000");

if (isset($applicantId) && is_numeric($applicantId) && intval($applicantId) > 0) {
$users = [Applicant::findOne(['id' => $applicantId])];
Expand Down Expand Up @@ -314,6 +315,7 @@ public function actionPrintApplications($applicantId = null)

public function actionPrintDenials($applicantId = null)
{
ini_set("pcre.backtrack_limit", "5000000");
if (isset($applicantId) && is_numeric($applicantId) && intval($applicantId) > 0) {
$users = [Applicant::findOne(['id' => $applicantId])];
} else {
Expand Down

0 comments on commit 27da075

Please sign in to comment.