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

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 72 Rev 82
Line 50... Line 50...
50 # We now escape each key and value: this is very important, because the 50 # We now escape each key and value: this is very important, because the
51 # data we send to Corrade may contain the '&' or '=' characters (we don't 51 # data we send to Corrade may contain the '&' or '=' characters (we don't
52 # in this example though but this will not hurt anyone). 52 # in this example though but this will not hurt anyone).
53 array_walk($params, 53 array_walk($params,
54 function(&$value, $key) { 54 function(&$value, $key) {
55 $value = rawurlencode($key)."=".rawurlencode($value); 55 $value = urlencode($key)."=".urlencode($value);
56 } 56 }
57 ); 57 );
58 $postvars = implode('&', $params); 58 $postvars = implode('&', $params);
Line 59... Line 59...
59   59