diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-10-12 16:22:33 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2024-10-12 16:28:35 +0200 |
commit | 6962aacc84b50467e387294386b4cf51906f1dd4 (patch) | |
tree | 8aab94838e14fc4bc9ccb007df432aad275b85c8 /flakes/mypackages/pkgs/webapps/roundcubemail/md5.patch | |
parent | 63226079b1697b6ccec1081239ca875bdc01f210 (diff) | |
download | Nix-6962aacc84b50467e387294386b4cf51906f1dd4.tar.gz Nix-6962aacc84b50467e387294386b4cf51906f1dd4.tar.zst Nix-6962aacc84b50467e387294386b4cf51906f1dd4.zip |
Bump roundcube
Diffstat (limited to 'flakes/mypackages/pkgs/webapps/roundcubemail/md5.patch')
-rw-r--r-- | flakes/mypackages/pkgs/webapps/roundcubemail/md5.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/flakes/mypackages/pkgs/webapps/roundcubemail/md5.patch b/flakes/mypackages/pkgs/webapps/roundcubemail/md5.patch new file mode 100644 index 0000000..36b30c2 --- /dev/null +++ b/flakes/mypackages/pkgs/webapps/roundcubemail/md5.patch | |||
@@ -0,0 +1,22 @@ | |||
1 | diff --git a/program/include/rcmail_output_html.php b/program/include/rcmail_output_html.php | ||
2 | index 0552b89c2..1b84e1b4e 100644 | ||
3 | --- a/program/include/rcmail_output_html.php | ||
4 | +++ b/program/include/rcmail_output_html.php | ||
5 | @@ -1013,13 +1013,13 @@ EOF; | ||
6 | // use minified file if exists (not in development mode) | ||
7 | if (!$this->devel_mode && !preg_match('/\.min\.' . $ext . '$/', $file)) { | ||
8 | $minified_file = substr($file, 0, strlen($ext) * -1) . 'min.' . $ext; | ||
9 | - if ($fs = @filemtime($this->assets_dir . $minified_file)) { | ||
10 | - return $minified_file . '?s=' . $fs; | ||
11 | + if ($fs = @md5_file($this->assets_dir . $minified_file)) { | ||
12 | + return $minified_file . '?s=' . substr($fs, 0, 6); | ||
13 | } | ||
14 | } | ||
15 | |||
16 | - if ($fs = @filemtime($this->assets_dir . $file)) { | ||
17 | - $file .= '?s=' . $fs; | ||
18 | + if ($fs = @md5_file($this->assets_dir . $file)) { | ||
19 | + $file .= '?s=' . substr($fs, 0, 6); | ||
20 | } | ||
21 | |||
22 | return $file; | ||