-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Removing root path from the entire output #9280
Conversation
@@ -39,7 +39,7 @@ public function display($tpl = null) | |||
|
|||
$data = $this->getLayoutData(); | |||
|
|||
echo json_encode($data); | |||
echo str_replace(JPATH_ROOT, '', json_encode($data)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better as
echo str_replace(JPATH_ROOT, 'xxxxxx', json_encode($data));
So that it is clear there is something hidden in the output
@Radek-Suski can you update this as per my comments so it is clear something has been removed from the output Ignore the Travis failures they are unrelated |
…ding to Brian Teeman's comments
Done |
Works fine for plain text Maybe my suggested code was wrong for json as the json still shows the full path
|
No, I missed a point. Give me few hours. I need to go out for a moment |
…telly in all directories paths
Bump Radek :) |
@wilsonge I fixed it already |
@Radek-Suski one full path remains in the json: php open_basedir (if configured on the server), in txt is ok And there is also the |
@Radek-Suski Removing it completely (web and download) is not a good solution as it is useful for people to know this This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
I have tested this item 🔴 unsuccessfully on 1085f72 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
What impact will this have on extensions that are looking for a file and On 3/2/2016 17:53, Brian Teeman wrote:
|
None at all
|
@brianteeman we are removing it from all other paths so it would it doesn't make sense to make an exception for two paths only. |
@Radek-Suski We are ONLY removing the full path form the text and the json NOT the web This last update from you removes the full path for logs and tmp folder in the folder permissions tab from the text, json AND web views it should not be removed from the web view. Hope that makes sense This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
@andrepereiradasilva Not sure what @radek_suski meant about it not being something we can remove - he must need more coffee - as he wrote the code already This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
Ok, now I am a bit confused. What is a "web view"? |
The bit you can see in your web browser
|
This PR has received new commits. CC: @brianteeman This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
This PR has received new commits. CC: @brianteeman This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
Lets try testing it as well ;) The txt and the json have
The web now just says
The web should be as it was before
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
Even worse now as before, as far as I could see log and temp dirs are also back with full path in json. |
This PR has received new commits. CC: @1apweb, @andrepereiradasilva, @anibalsanchez, @brianteeman, @richard67 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
I have tested this item ✅ successfully on 4d4e933 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
I have tested this item ✅ successfully on 4d4e933 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
This PR has received new commits. CC: @1apweb, @andrepereiradasilva, @anibalsanchez, @brianteeman, @richard67 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
I have tested this item ✅ successfully on 60c327c This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
@Radek-Suski Shall we wait for further CS fixes for Travis? Or shall we test now? Let us know pls. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
Feel free to test. I have no time at the moment to pleasure Travis ;) |
OK. Was not your CS mistakes anyway. |
It's fine - I can fix travis when i merge :) |
Thanks @wilsonge. You've a beer in Barcelona 💃 |
it's already tested successfully several times, so can be merged IMHO |
RTC |
Will merge when I get home tonight. |
I have tested this item ✅ successfully on 60c327c This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
@wilsonge It seems joomla-cms-bot does not like you 👅 Maybe it's better with 2 good tests? Just tested with success. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
I have tested this item ✅ successfully on 60c327c This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
RTC (again) This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/9280. |
Pull Request for Issue #9252
Summary of Changes
Removing root path from the entire output
Testing Instructions
Check if the report contains the path to Joomla! installation