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

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 75 Rev 82
Line 36... Line 36...
36 # We now escape each key and value: this is very important, because the 36 # We now escape each key and value: this is very important, because the
37 # data we send to Corrade may contain the '&' or '=' characters (we don't 37 # data we send to Corrade may contain the '&' or '=' characters (we don't
38 # in this example though but this will not hurt anyone). 38 # in this example though but this will not hurt anyone).
39 array_walk($params, 39 array_walk($params,
40 function(&$value, $key) { 40 function(&$value, $key) {
41 $value = rawurlencode($key)."=".rawurlencode($value); 41 $value = urlencode($key)."=".urlencode($value);
42 } 42 }
43 ); 43 );
44 $postvars = implode('&', $params); 44 $postvars = implode('&', $params);
Line 45... Line 45...
45   45