1 parent 57a8d71 commit 75f9992Copy full SHA for 75f9992
1 file changed
lib/WeBWorK/ContentGenerator.pm
@@ -498,7 +498,8 @@ sub links ($c) {
498
499
# It's possible that the setID and the problemID are invalid, since they're just taken from the URL path info.
500
if ($authen->was_verified) {
501
- if (defined $setID && $db->existsUserSet($eUserID, $setID)) {
+ my $globalSetID = defined $setID ? $setID =~ s/,v\d+$//r : undef;
502
+ if (defined $globalSetID && $db->existsGlobalSet($globalSetID)) {
503
$problemID = undef unless (defined $problemID && $db->existsUserProblem($eUserID, $setID, $problemID));
504
} else {
505
$setID = undef;
0 commit comments