X-Git-Url: https://dev.renevier.net/gitweb.cgi?a=blobdiff_plain;f=application%2Fcontrollers%2FPathController.php;h=48a22befd43930ef1d0f6a8036e28524c1ea347d;hb=a86eeac0ab678ea55307e1386c5f955f77d8ff73;hp=b521a2688f9f6f86d8c378e5098d8de57664d761;hpb=1d1b5940442782d78f796d8608e63328e2e8783b;p=syj.git diff --git a/application/controllers/PathController.php b/application/controllers/PathController.php index b521a26..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); @@ -24,14 +24,14 @@ class PathController extends Zend_Controller_Action $formData = $this->_helper->SyjPostData->getPostData('Syj_Form_Geom'); $path = $this->getPath(); $this->save($path, $formData); - $this->_helper->SyjApi->setCode(204); + $this->_helper->SyjApi->setCode(200); // we should use 204, but ie mangles 204 to 1223 } public function deleteAction() { $path = $this->getPath(); $pathMapper = new Syj_Model_PathMapper(); $pathMapper->delete ($path); - $this->_helper->SyjApi->setCode(204); + $this->_helper->SyjApi->setCode(200); // we should use 204, but ie mangles 204 to 1223 } public function getPath() {