X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FPathController.php;h=48a22befd43930ef1d0f6a8036e28524c1ea347d;hp=bb969e82c8ed6b15888a6cf9de01adc0510c7a4e;hb=a86eeac0ab678ea55307e1386c5f955f77d8ff73;hpb=e85f4874bb734d7b84cc2d10955db2065ac4f261 diff --git a/application/controllers/PathController.php b/application/controllers/PathController.php index bb969e8..48a22be 100644 --- a/application/controllers/PathController.php +++ b/application/controllers/PathController.php @@ -13,7 +13,7 @@ class PathController extends Zend_Controller_Action throw new Syj_Exception_Request(); } $path->creator = $user; - $path->creatorIp = $this->getRequest()->getClientIp(true); + $path->creatorIp = trim(end(split(',', $this->getRequest()->getClientIp(true)))); $this->save($path, $formData); $data = array('redirect' => "idx/" . (string)$path->id);