Skip to content
Snippets Groups Projects
Commit 2e10ed5e authored by Olav Morken's avatar Olav Morken
Browse files

Fix a couple of pass-by-referece errors.

Since pass-by-reference has been removed in PHP 5.4, it should no
longer be used. Both of these places probably used it by mistake,
so removing it should be safe.

Thanks to Thijs Kinkhorst for fixing this!

git-svn-id: https://simplesamlphp.googlecode.com/svn/trunk@3029 44740490-163a-0410-bde0-09ae8108e29a
parent 3b75ed62
No related branches found
No related tags found
No related merge requests found
...@@ -151,7 +151,7 @@ class sspmod_InfoCard_STS { ...@@ -151,7 +151,7 @@ class sspmod_InfoCard_STS {
$signature = ''; $signature = '';
$privkey = openssl_pkey_get_private(file_get_contents($ICconfig['sts_key'])); $privkey = openssl_pkey_get_private(file_get_contents($ICconfig['sts_key']));
openssl_sign($canonicalbuf, &$signature, $privkey); openssl_sign($canonicalbuf, $signature, $privkey);
openssl_free_key($privkey); openssl_free_key($privkey);
$infocard_signature = base64_encode($signature); $infocard_signature = base64_encode($signature);
......
...@@ -11,7 +11,7 @@ function getValue($raw) { ...@@ -11,7 +11,7 @@ function getValue($raw) {
if (!empty($url)) $val = $url; if (!empty($url)) $val = $url;
$arr = array(); $arr = array();
$query = parse_str($val, &$arr); $query = parse_str($val, $arr);
#echo('<pre>');print_r($arr); #echo('<pre>');print_r($arr);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment