Opened 16 years ago
Closed 16 years ago
#820 closed Defect (fixed)
"Terms of use" feature causes warning in get_project_config.php
Reported by: | Nicolas | Owned by: | davea |
---|---|---|---|
Priority: | Minor | Milestone: | Undetermined |
Component: | Server - Other | Version: | |
Keywords: | Cc: |
Description
I just looked at my project's get_project_config.php
. I'm not using the "terms of use" feature (only one project is using it as far as I know). The get_project_config output looks like this:
<?xml version="1.0" encoding="ISO-8859-1" ?> <project_config> <name>...</name> <master_url>...</master_url> <local_revision>16766M</local_revision> <web_stopped>0</web_stopped> <account_creation_disabled/> <min_passwd_length>6</min_passwd_length> <sched_stopped>0</sched_stopped> <platforms> <platform> <platform_name>i686-apple-darwin</platform_name> <user_friendly_name>Mac OS 10.4 or later running on Intel</user_friendly_name> </platform> <platform> <platform_name>i686-pc-linux-gnu</platform_name> <user_friendly_name>Linux running on an Intel x86-compatible CPU</user_friendly_name> </platform> <platform> <platform_name>windows_intelx86</platform_name> <user_friendly_name>Microsoft Windows (98 or later) running on an Intel x86-compatible CPU</user_friendly_name> </platform> <platform> <platform_name>x86_64-pc-linux-gnu</platform_name> <user_friendly_name>Linux running on an AMD x86_64 or Intel EM64T CPU</user_friendly_name> </platform> </platforms> <br /> <b>Warning</b>: file_get_contents(../../terms_of_use.txt) [<a href='function.file-get-contents'>function.file-get-contents</a>]: failed to open stream: No such file or directory in <b>/home/nicolas/projects/boinctest/html/user/get_project_config.php</b> on line <b>122</b><br /> </project_config>
The script should be checking if the file exists before trying to read it.
Note: See
TracTickets for help on using
tickets.
Fixed two months ago in [16837], nobody remembered to close the ticket.