- web: fix bug in next_url mechanism

svn path=/trunk/boinc/; revision=23912
This commit is contained in:
David Anderson 2011-08-01 21:09:29 +00:00
parent 8837274aae
commit a01d8d8ccd
2 changed files with 7 additions and 0 deletions

View File

@ -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

View File

@ -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 "";