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

Fix EZP-20125: Siteaccess matching error when SA name is in the URL #153

Merged
merged 1 commit into from Nov 22, 2012

Conversation

dpobel
Copy link
Contributor

@dpobel dpobel commented Nov 22, 2012

Issue https://jira.ez.no/browse/EZP-20125

Description

URIElement matcher does a str_replace to generate the URI without the siteaccess (and the subdir prefix). As a result, if the URI contains the siteaccess name (and the subdir prefix), the generated URI is wrong.

Tests

manual tests + unit tests

@patrickallaert
Copy link
Contributor

👍

$uriElements = '/' . implode( '/', $this->getURIElements() );
if ( strpos( $uri, $uriElements ) === 0 )
{
sscanf( $uri, "$uriElements%s", $uri );
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sscanf FTW !

@bdunogier
Copy link
Member

👍

1 similar comment
@andrerom
Copy link
Contributor

+1

@dpobel dpobel merged commit bf265d5 into master Nov 22, 2012
ViniTou added a commit that referenced this pull request Feb 23, 2022
* EZP-32259: Replaced "ezplatform" commands namespace with "ibexa" (emit warning)

* EZP-32259: Replaced "ezplatform" commands namespace with "ibexa" (rename)

* fixup! EZP-32259: Replaced "ezplatform" commands namespace with "ibexa" (emit warning)

* fixup! EZP-32259: Replaced "ezplatform" commands namespace with "ibexa" (rename)

* fixup! EZP-32259: Replaced "ezplatform" commands namespace with "ibexa" (emit warning)

* EZP-32259: Use getDepracatedAliases method for set up alias names

* EZP-32259: Fixed const name usage

* EZP-31795: Fix for reindex command alias

* EZP-31795: Updated examples and messages

Co-authored-by: Dawid Parafiński <dawid.parafinski@ez.no>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants