-
-
Notifications
You must be signed in to change notification settings - Fork 165
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from using Mojolicious templates to a text .msg file and basic…
… interpolation. Mojolicious templates allow to much, and as such are a security vulnerability. Too bad. This calls the WeBWorK::Utils::processEmailMessage method again. Then interpolates some achievement specific variable in after that. More variables may be needed, but this is a start.
- Loading branch information
Showing
7 changed files
with
59 additions
and
47 deletions.
There are no files selected for viewing
12 changes: 0 additions & 12 deletions
12
courses.dist/modelCourse/templates/achievements/notifications/default.html.ep
This file was deleted.
Oops, something went wrong.
10 changes: 10 additions & 0 deletions
10
courses.dist/modelCourse/templates/achievements/notifications/default.msg
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,10 @@ | ||
$FN | ||
|
||
Congratulations, you just earned the $ACHIEVEMENT_NAME achievement! | ||
|
||
$ACHIEVEMENT_DESCRIPTION | ||
|
||
You have $POINTS_TO_NEXT_LEVEL points remaining until your next level-up. | ||
|
||
Great job! | ||
--Prof. X |
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
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
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