[ZendTo] Error after upgrade
Dale E. Qualls
deq at pattishall.com
Tue Jan 31 16:49:01 GMT 2017
I upgraded today (yum update zendto) and everything appeared to update normally.
Trying to open the site in the browser, I received this:
Parse error: syntax error, unexpected ';' in /opt/zendto/lib/NSSUtils.php on line 193
The only semicolon on that line is the one at the end:
/* Fetch the REMOTE_ADDR of the http connection, even through proxies */
function getClientIP()
{
// Get the forwarded IP if it exists
if ( isset($_SERVER['HTTP_CLIENT_IP']) && array_key_exists('HTTP_CLIENT_IP', $_SERVER) ) {
$the_ip = $_SERVER['HTTP_CLIENT_IP'];
} elseif ( isset($_SERVER['HTTP_X_FORWARDED_FOR']) && array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER )) {
$the_ips = explode(',', $_SERVER['HTTP_X_FORWARDED_FOR']);
$the_ip = trim($the_ips[0]);
} else {
$the_ip = $_SERVER['REMOTE_ADDR'];
}
// Now validate it
$the_ip = filter_var($the_ip, FILTER_VALIDATE_IP) ?: '0.0.0.0'; <-------------THIS IS LINE 193
return $the_ip;
}
Any thoughts or suggestions?
[http://www.pattishall.com/imgs/pattishalllogo.jpg]
Dale E. Qualls
Director of Information Technology
Pattishall, McAuliffe, Newbury, Hilliard & Geraldson LLP
200 South Wacker Drive, Suite 2900
Chicago, IL 60606-5896
Direct: (312) 554-7979 Main: (312) 554-8000 Fax: (312) 554-8015
deq at pattishall.com<mailto:deq at pattishall.com> www.pattishall.com<http://www.pattishall.com> Follow us on Twitter<http://www.twitter.com/Pattishall>
[http://images.pattishall.com/images/25pixelimage.gif] [http://images.pattishall.com/images/25pixelimage.gif] [http://images.pattishall.com/images/blf-badge.jpg] [http://images.pattishall.com/images/25pixelimage.gif] Pattishall Ranks GOLD in the United States and in Illinois in the prestigious
WTR 1000 [http://images.pattishall.com/images/25pixelimage.gif] [http://images.pattishall.com/images/2014chambers-65.jpg] [http://images.pattishall.com/images/25pixelimage.gif] [http://images.pattishall.com/images/2013gototop500.jpg]
________________________________
The preceding message and any attachments may contain confidential information protected by the attorney-client or other privilege. You may not forward this message or any attachments without the permission of the sender. If you believe that it has been sent to you in error, please reply to the sender that you received the message in error and then delete it. Nothing in this email message, including the typed name of the sender and/or this signature block, is intended to constitute an electronic signature unless a specific statement to the contrary is included in the message.
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ecs.soton.ac.uk/pipermail/zendto/attachments/20170131/9dc63e72/attachment.html
More information about the ZendTo
mailing list