Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloudLibrary with alternate cards bug fixes #2029

Merged
merged 5 commits into from
Aug 29, 2024

Conversation

Abhyastamita
Copy link
Contributor

  • Fixed check for useAlternateCard during checkout/hold placement - it was always coming back false, which caused the prompt to enter an alternate card to show up inappropriately.
  • Made form input and label alignment more consistent with other forms on library card page and alternate card popup.
  • Checkouts made with a linked card will now use the cloudLibrary settings that are in the scope of the linked card's home library.
  • Updated release notes

…ounts

Use the cloudLibrary settings that have a scope that matches the home library of the account that is doing the checkout (either the main account or linked card).
If the user agent contains spammy content (such as "sleep(" or "SELECT") return a 404 error.  The check for spammy content is case insensitive.
@Abhyastamita
Copy link
Contributor Author

Also includes blocking spammy user agents.

  • Added new function isSpammyUserAgent() to bootstrap.php which is almost the same as isSpammySearchTerm() in index.php, but is case insensitive and includes a few extra spammy strings to check for.
  • If the user agent is spammy, then return a 404.
  • Updated release notes.

@mdnoble73 mdnoble73 merged commit 7555f3e into Aspen-Discovery:24.09.00 Aug 29, 2024
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants