Merge branch 'platal-0.9.15'
[platal.git] / modules / auth / auth.inc.php
index bcd8b5b..f87dd03 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /***************************************************************************
- *  Copyright (C) 2003-2007 Polytechnique.org                              *
+ *  Copyright (C) 2003-2008 Polytechnique.org                              *
  *  http://opensource.polytechnique.org/                                   *
  *                                                                         *
  *  This program is free software; you can redistribute it and/or modify   *
@@ -23,7 +23,7 @@ function gpex_prepare_param($name, $val, &$to_hash,  $charset)
 {
     $val = iconv('UTF-8', $charset, $val);
     $to_hash .= $val;
-    return '&' . $name . '=' . $val;
+    return '&' . $name . '=' . urlencode($val);
 }
 
 function gpex_make($chlg, $privkey, $datafields, $charset)