If I force SSL on either the entire site or administrator the JURI::base() always returns a non https secure URL (it returns http regardless of settings). I assume it is getting the base directly from the configuration file.
I noticed the issue first in the core joomla media manager. When it creates the form action for the upload form it does not use jroute, it just uses JURI:
Code: Select all
<form action="<?php echo JURI::base(); ?>index.php?option=com_media&task=file.upload&tmpl=component&<?php echo $this->session->getName().'='.$this->session->getId(); ?>&<?php echo JUtility::getToken();?>=1" id="uploadForm" method="post" enctype="multipart/form-data">
And since JURI is always returning an http link (not https) the upload fails, so this seems to me that anyone forcing SSL will encounter these same issues in various components. My Joomla is up to date.
Has anyone else encountered this issue?? Any idea what I could do to fix this before the issue is addressed hopefully in a future version? Maybe if I do a check in the config file to see if its https and from there modify the base joomla path.
Thanks!