Skip to content

Commit b67e147

Browse files
cpeelsrjfoo
authored andcommitted
Issue warning if the project CTF was generated pre-Unicode
PP artifacts that were generated before the Unicode conversion still have their contents in Latin-1. There aren't many of these but we periodically stumble over some that are reclaimed.
1 parent 693bc1b commit b67e147

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

project.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,6 +1652,11 @@ function echo_download_zip(string $link_text, string $discriminator): void
16521652
echo "</a>";
16531653
echo_byte_size($filesize_b);
16541654
echo_last_modified($last_modified);
1655+
// output a warning if the file was generated before the UTF-8 cutover.
1656+
// timestamp is midnight May 18 2020
1657+
if ($discriminator == "" && $last_modified && $last_modified < 1589785200) {
1658+
echo "<br><span class='warning'>" . _("This file was generated before the Unicode conversion. If you are just starting to PP this project, please ask a site administrator to regenerate the file.") . "</span>";
1659+
}
16551660
echo "</li>";
16561661
echo "\n";
16571662
}

0 commit comments

Comments
 (0)