Click your browser's Back button to try again.\n
\n"; page_tail(); exit(); } @@ -34,7 +34,6 @@ function show_error($str) { try { $openid = new LightOpenID; echo "
"; - print_r($openid); exit; if(!$openid->mode) { if(isset($_POST['openid_identifier'])) { $openid->identity = $_POST['openid_identifier']; @@ -52,7 +51,6 @@ try { echo 'User has canceled authentication!'; } else { echo 'User ' . ($openid->validate() ? $openid->identity . ' has ' : 'has not ') . 'logged in.'; - //print_r($openid->getAttributes()); // Create the user in the DB $data = $openid->getAttributes(); $email_addr = $data['contact/email']; @@ -67,7 +65,6 @@ try { error_page("Account creation is disabled"); } - // see whether the new account should be pre-enrolled in a team, // and initialized with its founder's project prefs // @@ -93,10 +90,7 @@ try { // if (!preg_match(INVITE_CODES, $invite_code)) { // show_error(tra("The invitation code you gave is not valid.")); // } - //} - - print_r($data); - exit(); + //} $new_name = $data['namePerson/friendly']; if (!is_valid_user_name($new_name, $reason)) { diff --git a/html/user/prefs_edit.php b/html/user/prefs_edit.php index 57e487056c..50e6435332 100644 --- a/html/user/prefs_edit.php +++ b/html/user/prefs_edit.php @@ -26,7 +26,7 @@ $user = get_logged_in_user(); $action = sanitize_tags(get_str("action", true)); $subset = sanitize_tags(get_str("subset")); $venue = sanitize_tags(get_str("venue", true)); -$columns = get_str("cols", true); +$columns = get_int("cols", true); $c = $columns?"&cols=$columns":""; check_subset($subset); if ($action) { diff --git a/html/user/submit_rpc_handler.php b/html/user/submit_rpc_handler.php index f026c84bb3..177bea14c7 100644 --- a/html/user/submit_rpc_handler.php +++ b/html/user/submit_rpc_handler.php @@ -36,7 +36,7 @@ function get_wu($name) { $wu = BoincWorkunit::lookup("name='$name'"); if (!$wu) { log_write("no job named $name was found"); - xml_error(-1, "no job named $name was found"); + xml_error(-1, "job not found: ".htmlspecialchars($name)); } return $wu; } @@ -46,7 +46,7 @@ function get_submit_app($name) { $app = BoincApp::lookup("name='$name'"); if (!$app) { log_write("no app named $name was found"); - xml_error(-1, "no app named $name was found"); + xml_error(-1, "app not found: ".htmlspecialchars($name)); } return $app; } @@ -105,7 +105,7 @@ function read_input_template($app, $r) { $x = simplexml_load_file($path); if (!$x) { log_write("couldn't parse input template file $path"); - xml_error(-1, "couldn't parse input template file $path"); + xml_error(-1, "couldn't parse input template file ".htmlspecialchars($path)); } return $x; } else { @@ -1068,7 +1068,7 @@ if (0) { $r = simplexml_load_string($req); if (!$r) { log_write("----- RPC request: can't parse request message: $req"); - xml_error(-1, "can't parse request message: $req"); + xml_error(-1, "can't parse request message: ".htmlspecialchars($req)); } log_write("----- Handling RPC; command ".$r->getName());