File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -401,6 +401,14 @@ function &beginWithoutDiscovery($endpoint, $anonymous=false)
401
401
*/
402
402
function complete ($ return_to , $ query =null )
403
403
{
404
+ if ($ return_to && !is_string ($ return_to )) {
405
+ // This is ugly, but we need to complain loudly when
406
+ // someone uses the API incorrectly.
407
+ trigger_error ("return_to must be a string; see NEWS file " .
408
+ "for upgrading notes. " ,
409
+ E_USER_ERROR );
410
+ }
411
+
404
412
if ($ query === null ) {
405
413
$ query = Auth_OpenID::getQuery ();
406
414
}
Original file line number Diff line number Diff line change @@ -44,9 +44,12 @@ If you cannot run the Python script, you can re-create your store by
44
44
dropping the tables in the store and calling createTables() on the
45
45
store object.
46
46
47
- Consumers should now pass an additional parameter to
47
+ Consumers should now pass the consumer return_to URL to
48
48
Auth_OpenID_Consumer::complete() to defend against return_to URL
49
- tampering.
49
+ tampering. This has REPLACED the old parameter, $query. $query is
50
+ now a second optional parameter. It is STRONGLY RECOMMENDED that you
51
+ never override $query, since the OpenID library uses its own logic to
52
+ sidestep PHP's broken request-processing code.
50
53
51
54
52
55
Summary of API Changes
You can’t perform that action at this time.
0 commit comments