Skip to content

Commit

Permalink
Merge pull request #39217 from shdehnavi/replace_substr_call_in_lib_p…
Browse files Browse the repository at this point in the history
…ublic
  • Loading branch information
skjnldsv authored Aug 6, 2024
2 parents 69814cd + f19f8fd commit ead0471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public/AppFramework/AuthPublicShareController.php
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ final public function getAuthenticationRedirect(string $redirect): RedirectRespo
private function getRoute(string $function): string {
$app = strtolower($this->appName);
$class = (new \ReflectionClass($this))->getShortName();
if (substr($class, -10) === 'Controller') {
if (str_ends_with($class, 'Controller')) {
$class = substr($class, 0, -10);
}
return $app .'.'. $class .'.'. $function;
Expand Down

0 comments on commit ead0471

Please sign in to comment.