mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-23 19:51:52 +00:00
c1294121d3
When managing data, there will be a preview of test data or validator binary file. But in PHP7 the prefiew of test data text file or problem.conf text file is not shown. After my test it is caused by file_get_contents() when passing offset with -1. It is strange that the manual on php.net in Chinese the default of $offset is -1, but in English the default of $offset is 0. Use -1 will get nothing, 0 instead is fine. The commit also change uojFilePreview() that can also be used as viewing binary file. For backwards compatibility, we just set text as the default file type and no need to specify. |
||
---|---|---|
.. | ||
uoj-contest-lib.php | ||
uoj-form-lib.php | ||
uoj-html-lib.php | ||
uoj-judger-lib.php | ||
uoj-lib.php | ||
uoj-query-lib.php | ||
uoj-rand-lib.php | ||
uoj-security-lib.php | ||
uoj-svn-lib.php | ||
uoj-utility-lib.php | ||
uoj-validate-lib.php |