Skip to content

Commit

Permalink
Merge branch 'release-10.0' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Sep 18, 2024
2 parents d9082c9 + 1cd52ed commit 338115e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Auth/Shibboleth.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public function authenticate($request)
foreach ($this->attribsToCheck as $attribute) {
if (isset($shib[$attribute])) {
$value = $this->getAttribute($request, $shib[$attribute]);
if ($attribute == 'email') {
if ($attribute == 'email' && !empty($value)) {
$userService->updateUserEmail($user, $value);
} elseif (
$attribute == 'cat_username' && isset($shib['prefix'])
Expand Down
3 changes: 2 additions & 1 deletion module/VuFind/src/VuFind/Controller/AbstractRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,8 @@ public function saveAction()
// by unsetting the followup and relying on default behavior in processSave.
$referer = $this->getRequest()->getServer()->get('HTTP_REFERER');
if (
!str_ends_with($referer, '/Save')
!empty($referer)
&& !str_ends_with($referer, '/Save')
&& stripos($referer, 'MyResearch/EditList/NEW') === false
&& $this->isLocalUrl($referer)
) {
Expand Down
2 changes: 1 addition & 1 deletion module/VuFind/src/VuFind/Controller/CartController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function searchresultsbulkAction()
// have an external site in the referer, we should ignore that!
$referer = $this->getRequest()->getServer()->get('HTTP_REFERER');
$bulk = $this->url()->fromRoute('cart-searchresultsbulk');
if ($this->isLocalUrl($referer) && !str_ends_with($referer, $bulk)) {
if (!empty($referer) && $this->isLocalUrl($referer) && !str_ends_with($referer, $bulk)) {
$this->session->url = $referer;
}

Expand Down

0 comments on commit 338115e

Please sign in to comment.