corrade-http-templates – Diff between revs 72 and 82

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 72 Rev 82
Line 33... Line 33...
33 'item' => $uuid, 33 'item' => $uuid,
34 'data' => 'AssetUUID' 34 'data' => 'AssetUUID'
35 ); 35 );
36 array_walk($params, 36 array_walk($params,
37 function(&$value, $key) { 37 function(&$value, $key) {
38 $value = rawurlencode($key)."=".rawurlencode($value); 38 $value = urlencode($key)."=".urlencode($value);
39 } 39 }
40 ); 40 );
41 $postvars = implode('&', $params); 41 $postvars = implode('&', $params);
42 if (!($curl = curl_init())) { 42 if (!($curl = curl_init())) {
43 print 0; 43 print 0;
Line 106... Line 106...
106 'format' => 'mp3', 106 'format' => 'mp3',
107 'type' => 'Sound' 107 'type' => 'Sound'
108 ); 108 );
109 array_walk($params, 109 array_walk($params,
110 function(&$value, $key) { 110 function(&$value, $key) {
111 $value = rawurlencode($key)."=".rawurlencode($value); 111 $value = urlencode($key)."=".urlencode($value);
112 } 112 }
113 ); 113 );
114 $postvars = implode('&', $params); 114 $postvars = implode('&', $params);
115 if (!($curl = curl_init())) { 115 if (!($curl = curl_init())) {
116 print 0; 116 print 0;