Commit fbffdbde authored by Ola Hneini's avatar Ola Hneini Committed by Yassine Doghri
Browse files

fix: move html escaping on credits page

parent 90e44437
Loading
Loading
Loading
Loading
Loading
+12 −13
Original line number Diff line number Diff line
@@ -65,10 +65,9 @@ class CreditsController extends BaseController
                                                    : $credit->podcast->link,
                                                'title' => $credit->episode_id
                                                    ? (count($allPodcasts) > 1
                                                            ? "{$credit->podcast->title}"
                                                            ? esc($credit->podcast->title) . ''
                                                            : '') .
                                                        $credit->episode
                                                            ->title .
                                                        esc($credit->episode->title) .
                                                        episode_numbering(
                                                            $credit->episode
                                                                ->number,
@@ -77,7 +76,7 @@ class CreditsController extends BaseController
                                                            'text-xs ml-2',
                                                            true,
                                                        )
                                                    : $credit->podcast->title,
                                                    : esc($credit->podcast->title),
                                            ],
                                        ],
                                    ],
@@ -103,9 +102,9 @@ class CreditsController extends BaseController
                                            : $credit->podcast->link,
                                        'title' => $credit->episode_id
                                            ? (count($allPodcasts) > 1
                                                    ? "{$credit->podcast->title}"
                                                    ? esc($credit->podcast->title) . ''
                                                    : '') .
                                                $credit->episode->title .
                                                    esc($credit->episode->title) .
                                                episode_numbering(
                                                    $credit->episode->number,
                                                    $credit->episode
@@ -113,7 +112,7 @@ class CreditsController extends BaseController
                                                    'text-xs ml-2',
                                                    true,
                                                )
                                            : $credit->podcast->title,
                                            : esc($credit->podcast->title),
                                    ],
                                ],
                            ],
@@ -132,16 +131,16 @@ class CreditsController extends BaseController
                                    : $credit->podcast->link,
                                'title' => $credit->episode_id
                                    ? (count($allPodcasts) > 1
                                            ? "{$credit->podcast->title}"
                                            ? esc($credit->podcast->title) . ''
                                            : '') .
                                        $credit->episode->title .
                                            esc($credit->episode->title) .
                                        episode_numbering(
                                            $credit->episode->number,
                                            $credit->episode->season_number,
                                            'text-xs ml-2',
                                            true,
                                        )
                                    : $credit->podcast->title,
                                    : esc($credit->podcast->title),
                            ],
                        ],
                    ];
@@ -154,16 +153,16 @@ class CreditsController extends BaseController
                            : $credit->podcast->link,
                        'title' => $credit->episode_id
                            ? (count($allPodcasts) > 1
                                    ? "{$credit->podcast->title}"
                                    ? esc($credit->podcast->title) . ''
                                    : '') .
                                $credit->episode->title .
                                    esc($credit->episode->title) .
                                episode_numbering(
                                    $credit->episode->number,
                                    $credit->episode->season_number,
                                    'text-xs ml-2',
                                    true,
                                )
                            : $credit->podcast->title,
                            : esc($credit->podcast->title),
                    ];
                }
            }
+1 −1
Original line number Diff line number Diff line
@@ -38,7 +38,7 @@
                    <?php foreach ($role['is_in'] as $in): ?>
                        <a href="<?= esc($in[
                            'link'
                        ]) ?>" class="text-sm text-skin-muted hover:underline"><?= esc($in['title']) ?></a>
                        ]) ?>" class="text-sm text-skin-muted hover:underline"><?= $in['title'] ?></a>
                    <?php endforeach; ?>
                <?php endforeach; ?>
            </div>