Skip to content

Commit

Permalink
fix: Always lookup lower case file extensions
Browse files Browse the repository at this point in the history
Signed-off-by: Julius Knorr <jus@bitgrid.net>
  • Loading branch information
juliusknorr committed Dec 20, 2024
1 parent f13040b commit 60fd90b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/WOPI/Parser.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public function getUrlSrcForFile(File $file, bool $edit): string {
}

private function getUrlSrcByExtension(string $netZoneName, string $actionExt, $actionName): ?string {
$actionExt = strtolower($actionExt);
$result = $this->getParsed()->xpath(sprintf(
'/wopi-discovery/net-zone[@name=\'%s\']/app/action[@ext=\'%s\' and @name=\'%s\']',
$netZoneName, $actionExt, $actionName
Expand Down

0 comments on commit 60fd90b

Please sign in to comment.