Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jun 30, 2024

Bumps markupsafe from 2.0.1 to 2.1.5.

Release notes

Sourced from markupsafe's releases.

2.1.5

This is a fix release for the 2.1.x feature release branch. It fixes bugs but does not otherwise change behavior and should not result in breaking changes.

Fixes a regression in striptags behavior from 2.14. Spaces are now collapsed correctly.

2.1.4

This is a fix release for the 2.1.x feature release branch. It fixes bugs but does not otherwise change behavior and should not result in breaking changes.

2.1.3

This is a fix release for the 2.1.x feature branch.

2.1.2

This is the first release to provide wheels for Python 3.11. An SLSA provenance file is also generated, and is available to download from the GitHub release page.

2.1.1

2.1.0

Changelog

Sourced from markupsafe's changelog.

Version 2.1.5

Released 2024-02-02

  • Fix striptags not collapsing spaces. :issue:417

Version 2.1.4

Released 2024-01-19

  • Don't use regular expressions for striptags, avoiding a performance issue. :pr:413

Version 2.1.3

Released 2023-06-02

  • Implement format_map, casefold, removeprefix, and removesuffix methods. :issue:370
  • Fix static typing for basic str methods on Markup. :issue:358
  • Use Self for annotating return types. :pr:379

Version 2.1.2

Released 2023-01-17

  • Fix striptags not stripping tags containing newlines. :issue:310

Version 2.1.1

Released 2022-03-14

  • Avoid ambiguous regex matches in striptags. :pr:293

Version 2.1.0

Released 2022-02-17

... (truncated)

Commits

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Note
Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

Bumps [markupsafe](https://github.com/pallets/markupsafe) from 2.0.1 to 2.1.5.
- [Release notes](https://github.com/pallets/markupsafe/releases)
- [Changelog](https://github.com/pallets/markupsafe/blob/main/CHANGES.rst)
- [Commits](pallets/markupsafe@2.0.1...2.1.5)

---
updated-dependencies:
- dependency-name: markupsafe
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot @github
Copy link
Author

dependabot bot commented on behalf of github Oct 7, 2024

Superseded by #7.

@dependabot dependabot bot closed this Oct 7, 2024
@dependabot dependabot bot deleted the dependabot/pip/markupsafe-2.1.5 branch October 7, 2024 23:22
idoshr pushed a commit that referenced this pull request Oct 31, 2025
Fixes Bug #4 and Bug #5 from BUG_REPORT.md

Changes:
- Add validation in all pagination classes to reject per_page <= 0
- Raises ValueError with clear message when per_page is invalid
- Prevents ZeroDivisionError crashes when per_page=0
- Prevents undefined behavior with negative per_page values

Modified files:
- flask_mongoengine/pagination/basic_pagination.py
- flask_mongoengine/pagination/keyset_pagination.py
- flask_mongoengine/pagination/list_field_pagination.py

Added comprehensive test coverage:
- tests/test_pagination.py: test_per_page_validation()
  - Tests per_page=0 for all pagination classes
  - Tests negative per_page for all pagination classes
  - Verifies correct ValueError is raised with proper message
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.

1 participant