Skip to content

Conversation

@laoneo
Copy link
Member

@laoneo laoneo commented Apr 24, 2025

Summary of Changes

Follow up for #44516. The modified url should not be displayed after the update site is fetched as it can contain sensitive data. Better to assign the url to a new variable.

Testing Instructions

Add the following code to the file /plugins/installer/packageinstaller/src/Extension/PackageInstaller.php

public function onInstallerBeforeUpdateSiteDownload(\Joomla\CMS\Event\Installer\BeforeUpdateSiteDownloadEvent $event): void
{
        $event->updateUrl($event->getUrl().'demo=1');
}

and replace the line 47 with:

return ['onInstallerAddInstallationTab' => 'onInstallerAddInstallationTab', 'onInstallerBeforeUpdateSiteDownload' => 'onInstallerBeforeUpdateSiteDownload'];
  • Go to /administrator/index.php?option=com_installer&view=update
  • Click on "Check for updates"

Actual result BEFORE applying this Pull Request

The parameter demo=1 is shown in the warning message.
image

Expected result AFTER applying this Pull Request

The parameter demo=1 is not shown in the warning message.
image

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@dgrammatiko
Copy link
Contributor

I have tested this item ✅ successfully on 1197dd1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45373.

1 similar comment
@alikon
Copy link
Contributor

alikon commented May 3, 2025

I have tested this item ✅ successfully on 1197dd1


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45373.

@alikon
Copy link
Contributor

alikon commented May 3, 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45373.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label May 3, 2025
@rdeutz rdeutz added this to the Joomla! 5.3.1 milestone May 12, 2025
@rdeutz rdeutz merged commit cf8bf52 into joomla:5.3-dev May 12, 2025
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 12, 2025
@rdeutz
Copy link
Contributor

rdeutz commented May 12, 2025

Thanks

@laoneo laoneo deleted the update branch May 12, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants