X-Git-Url: https://dev.renevier.net/?p=syj.git;a=blobdiff_plain;f=application%2Fcontrollers%2FPathController.php;h=bb969e82c8ed6b15888a6cf9de01adc0510c7a4e;hp=48a22befd43930ef1d0f6a8036e28524c1ea347d;hb=a3870411b5c5217e7b2f063d2929fc2e14daa962;hpb=dfdbbefb4b79dd3d04123ccf3128172684721371 diff --git a/application/controllers/PathController.php b/application/controllers/PathController.php index 48a22be..bb969e8 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 = trim(end(split(',', $this->getRequest()->getClientIp(true)))); + $path->creatorIp = $this->getRequest()->getClientIp(true); $this->save($path, $formData); $data = array('redirect' => "idx/" . (string)$path->id);