diff --git a/asana.php b/asana.php index 2edae31..4ca6a62 100644 --- a/asana.php +++ b/asana.php @@ -668,7 +668,7 @@ private function create_task($data,$settings){ // Add data tags $d = ''; foreach ($data as $key => $value){ - $d .= ' -d "'.$key.'='.$value.'"'; + $d .= ' -d "'.$key.'='.urlencode($value).'"'; } // Send the API call @@ -799,4 +799,4 @@ private function check_data($fields = NULL,$filter = NULL){ 'next sunday' ); -} \ No newline at end of file +}