Merge lp:~hartmut-php/eventum/bug-806083 into lp:eventum

Proposed by Hartmut Holzgraefe
Status: Merged
Merged at revision: 4339
Proposed branch: lp:~hartmut-php/eventum/bug-806083
Merge into: lp:eventum
Diff against target: 20 lines (+2/-1)
1 file modified
lib/eventum/class.user.php (+2/-1)
To merge this branch: bzr merge lp:~hartmut-php/eventum/bug-806083
Reviewer Review Type Date Requested Status
Eventum Development Team Pending
Review via email: mp+66951@code.launchpad.net

Description of the change

fix for bug #806083

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/eventum/class.user.php'
2--- lib/eventum/class.user.php 2011-04-08 16:39:52 +0000
3+++ lib/eventum/class.user.php 2011-07-05 18:26:09 +0000
4@@ -1102,6 +1102,7 @@
5 $projects[] = $prj_id;
6 }
7 $prefs = serialize(Prefs::getDefaults($projects));
8+ $group_id = ($_POST["grp_id"]) ? Misc::escapeInteger($_POST["grp_id"]) : 'NULL';
9 $stmt = "INSERT INTO
10 " . APP_DEFAULT_DB . "." . APP_TABLE_PREFIX . "user
11 (
12@@ -1120,7 +1121,7 @@
13 '" . Auth::hashPassword(Misc::escapeString($_POST["password"])) . "',
14 '" . Misc::escapeString($_POST["full_name"]) . "',
15 '" . Misc::escapeString($_POST["email"]) . "',
16- '" . Misc::escapeString($_POST["grp_id"]) . "',
17+ $group_id,
18 '" . Misc::escapeString($prefs) . "'
19 )";
20 $res = DB_Helper::getInstance()->query($stmt);

Subscribers

People subscribed via source and target branches