Skip to content

Commit

Permalink
Merge pull request #225 from rmdstudio/master
Browse files Browse the repository at this point in the history
bug fixes, removed legacy force_ssl code
  • Loading branch information
rmdstudio committed May 29, 2015
2 parents 2447bb6 + 14ef03e commit 058dbaf
Show file tree
Hide file tree
Showing 20 changed files with 28 additions and 58 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Anahita 4.1.1 Birth Release
* fixed permalinks in comment stories and notifications
* fixed the default list limit bug in the admin back-end
* lots of development on the Subscriptions app, but sorry it isn't ready for this release yet.
* removed legacy force_ssl and implemented a global isSSL() auto detection method

Anahita 4.1.0 Birth Release
=============================
Expand Down
2 changes: 1 addition & 1 deletion packages/Invites/src/media/com_invites/js/min/email.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/Photos/src/media/com_photos/js/min/upload.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions src/administrator/components/com_application/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ function initialise($options = array())
function route()
{
$uri = JURI::getInstance();

if($this->getCfg('force_ssl') >= 1 && strtolower($uri->getScheme()) != 'https')
{
//forward to https
$uri->setScheme('https');
$this->redirect($uri->toString());
}

//forward to https
$scheme = (isSSL()) ? 'https' : 'http';
$uri->setScheme( $scheme );
$this->redirect($uri->toString());
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/media/com_actors/js/min/cover.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/media/com_composer/js/min/composer.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/media/com_search/js/min/search.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/media/lib_anahita/js/anahita/actions/entity.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
if ( action == 'addcomment' ) {

var form = $(this);
var comments = form.prev('.an-comments');
var comments = form.siblings('.an-comments');

$.ajax({
method : 'post',
Expand Down
2 changes: 1 addition & 1 deletion src/media/lib_anahita/js/anahita/paginator.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

var a = $(event.target);
var self = this;
var currentEntities = $(this.element).prev(this.options.entities);
var currentEntities = $(this.element).siblings(this.options.entities);
var isComments = ( currentEntities.hasClass('an-comments') ) ? true : false;

$.ajax({
Expand Down
4 changes: 2 additions & 2 deletions src/media/lib_anahita/js/production/site.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/media/lib_anahita/js/production/site.uncompressed.js
Original file line number Diff line number Diff line change
Expand Up @@ -19333,7 +19333,7 @@ var sortable = $.widget("ui.sortable", $.ui.mouse, {

var a = $(event.target);
var self = this;
var currentEntities = $(this.element).prev(this.options.entities);
var currentEntities = $(this.element).siblings(this.options.entities);
var isComments = ( currentEntities.hasClass('an-comments') ) ? true : false;

$.ajax({
Expand Down Expand Up @@ -20146,7 +20146,7 @@ var sortable = $.widget("ui.sortable", $.ui.mouse, {
if ( action == 'addcomment' ) {

var form = $(this);
var comments = form.prev('.an-comments');
var comments = form.siblings('.an-comments');

$.ajax({
method : 'post',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,6 @@ public static function showConfig()
$lists['error_reporting'] = JHTML::_('select.genericlist', $errors, 'error_reporting', 'class="inputbox" size="1"', 'value', 'text', $row->error_reporting);
$lists['enable_ftp'] = JHTML::_('select.booleanlist', 'ftp_enable', 'class="inputbox"', intval($row->ftp_enable));

$forceSSL = array(
JHTML::_('select.option', 0, JText::_('None')),
JHTML::_('select.option', 1, JText::_('Administrator Only')),
JHTML::_('select.option', 2, JText::_('Entire Site')),
);
$lists['force_ssl'] = JHTML::_('select.genericlist', $forceSSL, 'force_ssl', 'class="inputbox" size="1"', 'value', 'text', @$row->force_ssl);

// LOCALE SETTINGS
$timeoffset = array (
JHTML::_('select.option', -12, JText::_('(UTC -12:00) International Date Line West')),
Expand Down Expand Up @@ -235,8 +228,7 @@ function save()
$config_array['log_path'] = JRequest::getVar('log_path', JPATH_ROOT.DS.'logs', 'post', 'string');
$config_array['tmp_path'] = JRequest::getVar('tmp_path', JPATH_ROOT.DS.'tmp', 'post', 'string');
$config_array['live_site'] = preg_replace('/\/administrator.*/','',JURI::getInstance()->toString(array('scheme','host','port','path')));//rtrim(JRequest::getVar('live_site','','post','string'), );
$config_array['force_ssl'] = JRequest::getVar('force_ssl', 0, 'post', 'int');


// LOCALE SETTINGS
$config_array['offset'] = JRequest::getVar('offset', 0, 'post', 'float');

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,7 @@
<?php echo $lists['error_reporting']; ?>
</td>
</tr>

<tr>
<td class="key">
<span class="editlinktip hasTip" title="<?php echo JText::_('Force SSL'); ?>::<?php echo JText::_( 'TIPFORCESSL' ); ?>">
<?php echo JText::_('Force SSL'); ?>
</span>
</td>
<td>
<?php echo $lists['force_ssl']; ?>
</td>
</tr>

</tbody>
</table>
</fieldset>
13 changes: 1 addition & 12 deletions vendor/joomla/libraries/joomla/application/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -743,18 +743,7 @@ function &_createSession( $name )
{
$options = array();
$options['name'] = $name;
switch($this->_clientId) {
case 0:
if($this->getCfg('force_ssl') == 2) {
$options['force_ssl'] = true;
}
break;
case 1:
if($this->getCfg('force_ssl') >= 1) {
$options['force_ssl'] = true;
}
break;
}
$options['force_ssl'] = isSSL();

$session =& JFactory::getSession($options);

Expand Down
6 changes: 3 additions & 3 deletions vendor/joomla/libraries/joomla/session/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ private function _createId( )
*/
private function _setCookieParams() {
$cookie = session_get_cookie_params();
if($this->_force_ssl) {
$cookie['secure'] = true;
}

$cookie['secure'] = isSSL();
session_set_cookie_params( $cookie['lifetime'], $cookie['path'], $cookie['domain'], $cookie['secure'] );
}

Expand Down

0 comments on commit 058dbaf

Please sign in to comment.