corrade-http-templates – Diff between revs 72 and 82
?pathlinks?
Rev 72 | Rev 82 | |||
---|---|---|---|---|
Line 95... | Line 95... | |||
95 | ) |
95 | ) |
|
96 | ) |
96 | ) |
|
97 | ); |
97 | ); |
|
98 | array_walk($params, |
98 | array_walk($params, |
|
99 | function(&$value, $key) { |
99 | function(&$value, $key) { |
|
100 | $value = rawurlencode($key)."=".rawurlencode($value); |
100 | $value = urlencode($key)."=".urlencode($value); |
|
101 | } |
101 | } |
|
102 | ); |
102 | ); |
|
103 | $postvars = implode('&', $params); |
103 | $postvars = implode('&', $params); |
|
104 | if (!($curl = curl_init())) { |
104 | if (!($curl = curl_init())) { |
|
105 | print 0; |
105 | print 0; |
|
Line 186... | Line 186... | |||
186 | ) |
186 | ) |
|
187 | ) |
187 | ) |
|
188 | ); |
188 | ); |
|
189 | array_walk($params, |
189 | array_walk($params, |
|
190 | function(&$value, $key) { |
190 | function(&$value, $key) { |
|
191 | $value = rawurlencode($key)."=".rawurlencode($value); |
191 | $value = urlencode($key)."=".urlencode($value); |
|
192 | } |
192 | } |
|
193 | ); |
193 | ); |
|
194 | $postvars = implode('&', $params); |
194 | $postvars = implode('&', $params); |
|
195 | if (!($curl = curl_init())) { |
195 | if (!($curl = curl_init())) { |
|
196 | print 0; |
196 | print 0; |
|
Line 277... | Line 277... | |||
277 | # We now escape each key and value: this is very important, because the |
277 | # We now escape each key and value: this is very important, because the |
|
278 | # data we send to Corrade may contain the '&' or '=' characters (we don't |
278 | # data we send to Corrade may contain the '&' or '=' characters (we don't |
|
279 | # in this example though but this will not hurt anyone). |
279 | # in this example though but this will not hurt anyone). |
|
280 | array_walk($params, |
280 | array_walk($params, |
|
281 | function(&$value, $key) { |
281 | function(&$value, $key) { |
|
282 | $value = rawurlencode($key)."=".rawurlencode($value); |
282 | $value = urlencode($key)."=".urlencode($value); |
|
283 | } |
283 | } |
|
284 | ); |
284 | ); |
|
285 | $postvars = implode('&', $params); |
285 | $postvars = implode('&', $params); |
|
Line 286... | Line 286... | |||
286 | |
286 | |