corrade-http-templates – Diff between revs 80 and 82
?pathlinks?
Rev 80 | Rev 82 | |||
---|---|---|---|---|
Line 62... | Line 62... | |||
62 | # We now escape each key and value: this is very important, because the |
62 | # We now escape each key and value: this is very important, because the |
|
63 | # data we send to Corrade may contain the '&' or '=' characters (we don't |
63 | # data we send to Corrade may contain the '&' or '=' characters (we don't |
|
64 | # in this example though but this will not hurt anyone). |
64 | # in this example though but this will not hurt anyone). |
|
65 | array_walk($params, |
65 | array_walk($params, |
|
66 | function(&$value, $key) { |
66 | function(&$value, $key) { |
|
67 | $value = rawurlencode($key)."=".rawurlencode($value); |
67 | $value = urlencode($key)."=".urlencode($value); |
|
68 | } |
68 | } |
|
69 | ); |
69 | ); |
|
70 | $postvars = implode('&', $params); |
70 | $postvars = implode('&', $params); |
|
Line 71... | Line 71... | |||
71 | |
71 | |