MDL-36988 cleanup role switching
authorPetr Škoda <commits@skodak.org>
Fri, 7 Dec 2012 17:13:22 +0000 (18:13 +0100)
committerPetr Škoda <commits@skodak.org>
Tue, 15 Jan 2013 20:44:20 +0000 (21:44 +0100)
commitaae028d9e3decb3671d656df5fbb648724a6095a
tree04788f3af5db6dc9dbd1bc0d348839fe92c7cddd
parentca48fe5f97721982e4c04f144382f5aa09de2405
MDL-36988 cleanup role switching

This patch uses local URLs in parameters because it is more compatible
with various security hacks. Session key is not added automatically to
return url for safety reasons - we do not want to execute some random
action again. POST pages are now returned to course page too.
course/switchrole.php
course/view.php
lib/navigationlib.php
lib/outputrenderers.php