mirror of
https://github.com/silverstripe/silverstripe-blog
synced 2024-10-22 11:05:58 +02:00
483a384fb1
If a user tries to paginate the blog using a value that is not an integer SilverStripe will throw a server error. Example. Visiting `blog/?start=10.1` will cause the following server error: ```You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '10.1' at line 8``` This change casts the pagination variable to an int before using it. |
||
---|---|---|
_config | ||
code | ||
css | ||
docs | ||
images | ||
js | ||
lang | ||
scss | ||
templates | ||
tests | ||
_config.php | ||
.codecov.yml | ||
.editorconfig | ||
.gitattributes | ||
.gitignore | ||
.scrutinizer.yml | ||
.travis.yml | ||
changelog.md | ||
code-of-conduct.md | ||
composer.json | ||
config.rb | ||
license.md | ||
README.md |
SilverStripe Blog Module
Documentation
Requirements
silverstripe/cms: ^3.1
silverstripe/lumberjack: ^1.1
silverstripe/tagfield: ^1.0
Suggested Modules
silverstripe/widgets: *
silverstripe/comments: *
Installation
composer require silverstripe/blog
Upgrading legacy blog to 2.x
If you're upgrading from blog version 1.0 to 2.x you will need to run the BlogMigrationTask
. Run the task using dev/tasks/BlogMigrationTask
either via the browser or sake CLI to migrate your legacy blog to the new version data structure.