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

permalink/slug traversal broken for taxonomies in ACTs #3155

Closed
pglewis opened this issue Sep 22, 2015 · 4 comments
Closed

permalink/slug traversal broken for taxonomies in ACTs #3155

pglewis opened this issue Sep 22, 2015 · 4 comments
Assignees
Milestone

Comments

@pglewis
Copy link
Contributor

pglewis commented Sep 22, 2015

#2779

c90acb

@pglewis pglewis added this to the Pods 2.5.6 milestone Sep 22, 2015
@pglewis
Copy link
Contributor Author

pglewis commented Sep 22, 2015

Before we patch this, we need to write a failing test since this was not detected by tests.

@pglewis
Copy link
Contributor Author

pglewis commented Sep 22, 2015

Candidate fix here:

elseif ( in_array( $field, array( '_link', 'detail_url' ) ) || ( in_array( $field, array( 'permalink', 'the_permalink' ) ) && 'pod' != $object_type ) )

@pglewis
Copy link
Contributor Author

pglewis commented Sep 22, 2015

We have a patch together in the feature/3155 branch that's ready to be tested.

@quasel
Copy link
Member

quasel commented Sep 23, 2015

Did some additional manual Tests e.g
pods('test')->find()->display('related.author.permalink');
pods('test')->find()->display('related.permalink');
pods('test')->find()->display('author.permalink');
pods('test')->find()->display('related.name');

Seems to work fine -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants