Create an article set as Registered with a Read More.
Create a menu item of type category blog displaying the category of the article. Make sure Show Unauthorised Links
is set to Yes.
Display the menu item in frontend and click on the Read More for that article. Log in.
The full article should display
The user profile displays.
This happens on monolanguage sites as well as multilanguage sites.
It looks like JUri::isInternal
is broken as it works fine when I comment
/*if (!JUri::isInternal($data['return']))
{
$data['return'] = '';
}*/
Look my comment at: #8698 (comment)
It works then, even if site is located in sub-folder.
Category | ⇒ | ACL |
Labels |
Added:
?
|
@joomdonation
Could not we just add to the present checks a check to find out if the url is relative?:
diff --git a/libraries/joomla/uri/uri.php b/libraries/joomla/uri/uri.php
index 381f61e..96a89f8 100644
--- a/libraries/joomla/uri/uri.php
+++ b/libraries/joomla/uri/uri.php
@@ -277,4 +277,11 @@
return true;
}
+
+ $position= stripos($url, '/');
+
+ if ($position === 0)
+ {
+ return true;
+ }
return false;
@infograf768 It is simpler to check of the url is relative. Please see https://github.com/joomla/joomla-cms/blob/staging/libraries/joomla/uri/uri.php#L272
If $host is empty, the URL is relative URL. People said that for security reason, the relative url need to starts with index.php (see the code), that's the reasons we are having this bug these days.
hmm
Therefore the only thing to do would be to correct #8698 (comment) and then hope for template designers (and all users) to change their overrides...
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2016-04-17 18:02:40 |
Closed_By | ⇒ | infograf768 |
Closed as we have a patch #9959
Yes, JUri::isInternal is broken and that is the reason causing the issue. There is a PR to fix this issue #8698, however, I think we will still have this issue after applying this PR if the site is located in sub-folder