diff --git a/app/registrations/resources/classes/registrations.php b/app/registrations/resources/classes/registrations.php
index 2660719d75..23df699d9d 100644
--- a/app/registrations/resources/classes/registrations.php
+++ b/app/registrations/resources/classes/registrations.php
@@ -54,6 +54,8 @@ if (!class_exists('registrations')) {
if ($xml_response == "Invalid Profile!") { $xml_response = "".$text['label-message'].""; }
$xml_response = str_replace("", "", $xml_response);
$xml_response = str_replace("", "", $xml_response);
+ $xml_response = str_replace("<", "", $xml_response);
+ $xml_response = str_replace(">", "", $xml_response);
if (strlen($xml_response) > 101) {
try {
$xml = new SimpleXMLElement($xml_response);
@@ -117,6 +119,10 @@ if (!class_exists('registrations')) {
}
$registrations[$id]['lan-ip'] = $lan_ip;
}
+ else if (preg_match('/\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}/', $row['contact'], $ip_match)) {
+ $lan_ip = preg_replace('/_/', '.', $ip_match[0]);
+ $registrations[$id]['lan-ip'] = "$lan_ip";
+ }
else {
$registrations[$id]['lan-ip'] = '';
}
@@ -207,4 +213,4 @@ $registrations = $obj->get('all');
print($registrations);
*/
-?>
\ No newline at end of file
+?>