Bug #23766 Project URLs without a leading "http://" are not properly redirected
Submitted: 30 Oct 2006 11:07 Modified: 11 Mar 2008 2:01
Reporter: Lenz Grimmer Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Websites: MySQLForge Severity:S3 (Non-critical)
Version: OS:Any
Assigned to: Jay Pipes CPU Architecture:Any

[30 Oct 2006 11:07] Lenz Grimmer
Description:
If the "Homepage" field in a project contains an URL without a leading "http://", clicking on the link will result in a bad redirection.

How to repeat:
Take http://forge.mysql.com/projects/view.php?id=170 as an example: clicking on the URL "www.ddengine.org" will cause a redirect to http://forge.mysql.com/projects/www.ddengine.org instead of http://www.ddengine.org

Suggested fix:
Either fix the redirection to accept URLs without a leading "http" or add some input verification during the project registration. The latter option would require that we go through the entire project database and fix all URLs.
[30 Oct 2006 11:18] Valeriy Kravchuk
Thank you for a problem report. Verified just as described.
[11 Mar 2008 2:01] Jay Pipes
Added check to project handler that validates URIs using PEAR::Validate::uri().

Also fixed some template issues that were not displaying the correct tabs when an error occurred (in templates/tools/snippet.tpl and template/projects/project.tpl)

FIXED in r455