mirror of https://github.com/BOINC/boinc.git
- web: fix bug in next_url mechanism
svn path=/trunk/boinc/; revision=23912
This commit is contained in:
parent
8837274aae
commit
a01d8d8ccd
|
@ -4494,3 +4494,9 @@ David 31 July 2011
|
|||
sched_types.cpp
|
||||
html/user/
|
||||
create_account_form.cpp
|
||||
|
||||
David 1 Aug 2011
|
||||
- web: fix bug in next_url mechanism
|
||||
|
||||
html/inc/
|
||||
util.inc
|
||||
|
|
|
@ -795,6 +795,7 @@ function get_app_types() {
|
|||
// "next_url" arguments (must be local, not full URLs)
|
||||
//
|
||||
function sanitize_local_url($x) {
|
||||
$x = trim($x, "/");
|
||||
if (strstr($x, "/")) return "";
|
||||
if (strstr($x, "<")) return "";
|
||||
if (strstr($x, "\"")) return "";
|
||||
|
|
Loading…
Reference in New Issue