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

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