forked from ILIAS-eLearning/ILIAS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
41937: Anonymous user can activate notifications for wiki - leading t…
…o notifications to crash
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<?php | ||
|
||
/** | ||
* This file is part of ILIAS, a powerful learning management system | ||
* published by ILIAS open source e-Learning e.V. | ||
* | ||
* ILIAS is licensed with the GPL-3.0, | ||
* see https://www.gnu.org/licenses/gpl-3.0.en.html | ||
* You should have received a copy of said license along with the | ||
* source code, too. | ||
* | ||
* If this is not the case or you just want to try ILIAS, you'll find | ||
* us at: | ||
* https://www.ilias.de | ||
* https://github.com/ILIAS-eLearning | ||
* | ||
*********************************************************************/ | ||
|
||
namespace ILIAS\Wiki\Setup; | ||
|
||
/** | ||
* @author Alexander Killing <[email protected]> | ||
*/ | ||
class ilWiki8HotfixDBUpdateSteps implements \ilDatabaseUpdateSteps | ||
{ | ||
protected \ilDBInterface $db; | ||
|
||
public function prepare(\ilDBInterface $db): void | ||
{ | ||
$this->db = $db; | ||
} | ||
|
||
public function step_1(): void | ||
{ | ||
$db = $this->db; | ||
$db->manipulateF("DELETE FROM notification WHERE " . | ||
" user_id = %s", | ||
["integer"], | ||
[13] | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters