Skip to content

Commit 522b567

Browse files
oleksandr-ncbackportbot[bot]
authored andcommitted
fix(proxy): add transitional bare-path fallback for legacy route URLs
fix(proxy): add transitional bare-path fallback for legacy route URLs Signed-off-by: Oleksander Piskun <oleksandr2088@icloud.com> [skip ci]
1 parent 23dab69 commit 522b567

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Controller/ExAppProxyController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ private function buildMultipartFormData(array $bodyParams, array $files): array
318318

319319
private function passesExAppProxyRoutesChecks(ExApp $exApp, string $exAppRoute): array {
320320
// Route URL is a regex matched against the request path including its leading slash, mirroring HaRP's target_path semantics.
321-
$exAppRoute = '/' . $exAppRoute;
321+
$canonicalSubject = '/' . $exAppRoute;
322322
foreach ($exApp->getRoutes() as $route) {
323323
$pattern = '~^(?:' . str_replace('~', '\\~', $route['url']) . ')~i';
324324
if (preg_match($pattern, $exAppRoute) === 1 &&

0 commit comments

Comments
 (0)