Skip to content

Commit

Permalink
Merge pull request #2443 from Codeinwp/bugfix/otter-internal/243
Browse files Browse the repository at this point in the history
Fixed dynamic image view issue with unauthetnicated users
  • Loading branch information
vytisbulkevicius authored Nov 21, 2024
2 parents 1ac9cae + 8bbaf52 commit 97abc3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inc/server/class-dynamic-content-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ public function get( $request ) {

$fallback = sanitize_text_field( $fallback );
$feedback_full_path = realpath( $fallback );
$feedback_full_path = str_contains( $feedback_full_path, WP_CONTENT_DIR );

if ( false !== $feedback_full_path && @getimagesize( $fallback ) ) { // phpcs:ignore WordPress.PHP.NoSilencedErrors.Discouraged
$path = $feedback_full_path;
Expand Down

0 comments on commit 97abc3f

Please sign in to comment.