← Back to team overview

mahara-contributors team mailing list archive

[Bug 618509] Re: XMLRPC link to hosts with underscores in hostname fails

 

I've added a potential fix based on HEAD to my clone of mahara which will give a more informative error message if trying to use an invalid hostname at:
http://gitorious.org/~dobedobedoh/mahara/luns-mahara-upstream-submissions/commits/618509

Any thoughts?

-- 
XMLRPC link to hosts with underscores in hostname fails
https://bugs.launchpad.net/bugs/618509
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.

Status in Mahara ePortfolio: Invalid

Bug description:
When establishing an XMLRPC connection to a network peer that has an underscore in the hostname an unknown error is thrown.

The get_hostname_from_uri function in api/xmlrpc/lib.php is the cause of the problem. The regular expression (~line 47) does not cater for underscores...

Version is 1.2.5, OS is Windows and database is PostgreSQL.





References