Browse Source

Exclude inline base64 images from static.php (#9835)

pull/9832/head
Gianluca Giacometti 4 months ago
committed by GitHub
parent
commit
053ffaef6b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      program/include/rcmail_output_html.php

2
program/include/rcmail_output_html.php

@ -1084,7 +1084,7 @@ class rcmail_output_html extends rcmail_output
$prefix = str_repeat('../', count($path) + 1);
}
if (!str_starts_with($location, $prefix . 'static.php')) {
if (!str_starts_with($location, $prefix . 'static.php') && !str_starts_with($location, 'data:')) {
$location = $prefix . 'static.php/' . $location;
}
}

Loading…
Cancel
Save