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

If the url is not conform to date-based archiving, this unexpectedly wouldn't lead to an error. #14

Closed
wants to merge 6 commits into from

Conversation

eldanilo
Copy link

I noticed this today, as some weird urls showed up in the google index for one of my projects.

Since ArticlesRouter just passes the parameters through, the ArticlesContainer would always fall back to interpreting the request as an archive (even if a resource with this url doesn't exist and the parameters don't have anything in common with dates). As a result MODx will always return a HTTP 200 status, which is really bad.

To fix this, we have to validate the parameters for numeric values and return false if they are invalid.

@eldanilo eldanilo closed this Aug 2, 2012
@eldanilo eldanilo reopened this Aug 2, 2012
@jpdevries
Copy link
Collaborator

It looks like these were never merged with Articles, which is now moved to modxcms/Articles
a 1.7.2 release is already in final testing for release but will test and look into merging this for 1.7.3

@opengeek opengeek closed this in 0f864eb Oct 5, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants