Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Commit

Permalink
Merge pull request #50 from borriglione/magento-1.9
Browse files Browse the repository at this point in the history
Import Magento Release 1.9.3.4
  • Loading branch information
drobinson authored Jul 13, 2017
2 parents 7185e6f + 2725b76 commit ecd87b9
Show file tree
Hide file tree
Showing 54 changed files with 331 additions and 198 deletions.
10 changes: 10 additions & 0 deletions RELEASE_NOTES.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
==== 1.9.3.4 ====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
] NOTE: Current Release Notes are maintained at: [
] [
] http://devdocs.magento.com/guides/m1x/ce19-ee114/ce1.9_release-notes.html [
] [
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

==== 1.9.3.3 ====
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion app/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public static function getVersionInfo()
'major' => '1',
'minor' => '9',
'revision' => '3',
'patch' => '3',
'patch' => '4',
'stability' => '',
'number' => '',
);
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magento.com for more information.
*
* @category Mage
* @package Mage_Adminhtml
* @copyright Copyright (c) 2006-2017 X.commerce, Inc. and affiliates (http://www.magento.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

/**
* System config symlink backend model
*
* @category Mage
* @package Mage_Adminhtml
*/
class Mage_Adminhtml_Model_System_Config_Backend_Symlink extends Mage_Core_Model_Config_Data
{
/**
* Save object data
*
* @return Mage_Core_Model_Abstract
*/
public function save()
{
return $this;
}
}
4 changes: 0 additions & 4 deletions app/code/core/Mage/Checkout/controllers/OnepageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -350,10 +350,6 @@ public function saveMethodAction()
return;
}

if ($this->isFormkeyValidationOnCheckoutEnabled() && !$this->_validateFormKey()) {
return;
}

if ($this->getRequest()->isPost()) {
$method = $this->getRequest()->getPost('method');
$result = $this->getOnepage()->saveCheckoutMethod($method);
Expand Down
20 changes: 19 additions & 1 deletion app/code/core/Mage/Core/Model/File/Validator/Image.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,26 @@ public function validate($filePath)
$image = imagecreatefromstring(file_get_contents($filePath));
if ($image !== false) {
$img = imagecreatetruecolor($imageWidth, $imageHeight);
imagealphablending($img, false);
imagecopyresampled($img, $image, 0, 0, 0, 0, $imageWidth, $imageHeight, $imageWidth, $imageHeight);
imagesavealpha($img, true);

switch ($fileType) {
case IMAGETYPE_GIF:
$transparencyIndex = imagecolortransparent($image);
if ($transparencyIndex >= 0) {
imagecolortransparent($img, $transparencyIndex);
for ($y = 0; $y < $imageHeight; ++$y) {
for ($x = 0; $x < $imageWidth; ++$x) {
if (((imagecolorat($img, $x, $y) >> 24) & 0x7F)) {
imagesetpixel($img, $x, $y, $transparencyIndex);
}
}
}
}
if (!imageistruecolor($image)) {
imagetruecolortopalette($img, false, imagecolorstotal($image));
}
imagegif($img, $filePath);
break;
case IMAGETYPE_JPEG:
Expand All @@ -107,8 +124,9 @@ public function validate($filePath)
imagepng($img, $filePath);
break;
default:
return;
break;
}

imagedestroy($img);
imagedestroy($image);
return null;
Expand Down
2 changes: 1 addition & 1 deletion app/code/core/Mage/Core/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<config>
<modules>
<Mage_Core>
<version>1.6.0.6</version>
<version>1.6.0.7</version>
</Mage_Core>
</modules>
<global>
Expand Down
21 changes: 21 additions & 0 deletions app/code/core/Mage/Core/etc/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,27 @@
</template_hints_blocks>
</fields>
</debug>
<template translate="label">
<label>Template Settings</label>
<frontend_type>text</frontend_type>
<sort_order>25</sort_order>
<show_in_default>0</show_in_default>
<show_in_website>0</show_in_website>
<show_in_store>0</show_in_store>
<fields>
<allow_symlink translate="label comment">
<label>Allow Symlinks</label>
<frontend_type>select</frontend_type>
<source_model>adminhtml/system_config_source_yesno</source_model>
<backend_model>adminhtml/system_config_backend_symlink</backend_model>
<sort_order>10</sort_order>
<show_in_default>0</show_in_default>
<show_in_website>0</show_in_website>
<show_in_store>0</show_in_store>
<comment>Warning! Enabling this feature is not recommended on production environments because it represents a potential security risk.</comment>
</allow_symlink>
</fields>
</template>
<translate_inline translate="label">
<label>Translate Inline</label>
<frontend_type>text</frontend_type>
Expand Down
40 changes: 40 additions & 0 deletions app/code/core/Mage/Core/sql/core_setup/upgrade-1.6.0.6-1.6.0.7.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magento.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magento.com for more information.
*
* @category Mage
* @package Mage_Core
* @copyright Copyright (c) 2006-2017 X.commerce, Inc. and affiliates (http://www.magento.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

/* @var $installer Mage_Core_Model_Resource_Setup */
$installer = $this;

$installer->startSetup();
$connection = $installer->getConnection();

$connection->delete(
$this->getTable('core_config_data'),
$connection->prepareSqlCondition('path', array(
'like' => 'dev/template/allow_symlink'
))
);

$installer->endSetup();
3 changes: 2 additions & 1 deletion app/design/adminhtml/default/default/layout/main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,9 @@ Default layout, loads most of the pages
<block type="adminhtml/cache_notifications" name="cache_notifications" template="system/cache/notifications.phtml"></block>
<block type="adminhtml/notification_survey" name="notification_survey" template="notification/survey.phtml"/>
<block type="adminhtml/notification_security" name="notification_security" as="notification_security" template="notification/security.phtml"></block>
<block type="adminhtml/checkout_formkey" name="checkout_formkey" as="checkout_formkey" template="notification/formkey.phtml"/></block>
<block type="adminhtml/checkout_formkey" name="checkout_formkey" as="checkout_formkey" template="notification/formkey.phtml"/>
<block type="adminhtml/notification_symlink" name="notification_symlink" template="notification/symlink.phtml"/>
</block>
<block type="adminhtml/widget_breadcrumbs" name="breadcrumbs" as="breadcrumbs"></block>

<!--<update handle="formkey"/> this won't work, see the try/catch and a jammed exception in Mage_Core_Model_Layout::createBlock() -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
var BLANK_URL = '<?php echo $this->getJsUrl() ?>blank.html';
var BLANK_IMG = '<?php echo $this->getJsUrl() ?>spacer.gif';
var BASE_URL = '<?php echo $this->getUrl('*') ?>';
var SKIN_URL = '<?php echo $this->getSkinUrl() ?>';
var SKIN_URL = '<?php echo $this->jsQuoteEscape($this->getSkinUrl()) ?>';
var FORM_KEY = '<?php echo $this->getFormKey() ?>';
//]]>
</script>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,5 @@
<button type="submit" data-action="checkout-continue-shipping" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Continue to Shipping Information')) ?>" class="button<?php if ($this->isContinueDisabled()):?> disabled<?php endif; ?>" onclick="$('can_continue_flag').value=1"<?php if ($this->isContinueDisabled()):?> disabled="disabled"<?php endif; ?>><span><span><?php echo $this->__('Continue to Shipping Information') ?></span></span></button>
</div>
</div>
<?php echo $this->getBlockHtml("formkey") ?>
</form>
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<form action="" id="co-payment-form">
<fieldset>
<?php echo $this->getChildHtml('methods') ?>
<?php echo $this->getBlockHtml('formkey') ?>
</fieldset>
<?php echo $this->getBlockHtml('formkey') ?>
</form>
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
<div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Close')) ?>"><?php echo $this->__('Close') ?></a></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
<div class="fieldset">
<?php echo $this->getChildChildHtml('methods_additional', '', true, true) ?>
<?php echo $this->getChildHtml('methods') ?>
<?php echo $this->getBlockHtml('formkey') ?>
</div>
<?php echo $this->getBlockHtml('formkey') ?>
</form>
<div class="tool-tip" id="payment-tool-tip" style="display:none;">
<div class="btn-close"><a href="#" id="payment-tool-tip-close" title="<?php echo Mage::helper('core')->quoteEscape($this->__('Close')) ?>"><?php echo $this->__('Close') ?></a></div>
Expand Down
4 changes: 3 additions & 1 deletion downloader/Maged/Connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,9 @@ protected function _consoleHeader() {
color:#2EC029;
font:normal 11px Lucida Console, Courier New, serif;
}
</style></head><body>
</style>
<script type="text/javascript" src="js/prototype.js"></script>
</head><body>
<script type="text/javascript">
if (parent && parent.disableInputs) {
parent.disableInputs(true);
Expand Down
2 changes: 1 addition & 1 deletion downloader/Maged/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -1060,7 +1060,7 @@ public static function getVersionInfo()
'major' => '1',
'minor' => '9',
'revision' => '3',
'patch' => '3',
'patch' => '4',
'stability' => '',
'number' => '',
);
Expand Down
2 changes: 1 addition & 1 deletion downloader/lib/Mage/Connect/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ public function validate()
$validateMap = array(
'name' => array('method' => 'getName',
'v_method' => 'validatePackageName',
'error'=>"Invalid package name, allowed: [a-zA-Z0-9_-] chars"),
'error'=>"Invalid package name, allowed: [a-zA-Z0-9_+] chars"),
'version' => array('method' => 'getVersion',
'v_method' => 'validateVersion',
'error'=>"Invalid version, should be like: x.x.x"),
Expand Down
2 changes: 1 addition & 1 deletion downloader/lib/Mage/Connect/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ public function validateEmail($email)
*/
public function validatePackageName($name)
{
return preg_match("/^[a-zA-Z0-9_]+$/i", $name);
return preg_match("/^[a-zA-Z0-9_+]+$/i", $name);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Mage/Connect/Package.php
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ public function validate()
$validateMap = array(
'name' => array('method' => 'getName',
'v_method' => 'validatePackageName',
'error'=>"Invalid package name, allowed: [a-zA-Z0-9_-] chars"),
'error'=>"Invalid package name, allowed: [a-zA-Z0-9_+] chars"),
'version' => array('method' => 'getVersion',
'v_method' => 'validateVersion',
'error'=>"Invalid version, should be like: x.x.x"),
Expand Down
2 changes: 1 addition & 1 deletion lib/Mage/Connect/Validator.php
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ public function validateEmail($email)
*/
public function validatePackageName($name)
{
return preg_match("/^[a-zA-Z0-9_-]+$/i", $name);
return preg_match("/^[a-zA-Z0-9_+]+$/i", $name);
}

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0"?>
<package>
<name>Cm_RedisSession</name>
<version>1.9.3.3</version>
<version>1.9.3.4</version>
<stability>stable</stability>
<license uri="http://framework.zend.com/license/new-bsd">New BSD</license>
<channel>community</channel>
<extends/>
<summary>Redis session</summary>
<description>Redis seesion</description>
<notes>1.9.3.3</notes>
<notes>1.9.3.4</notes>
<authors><author><name>Colin Mollenhour</name><user>core</user><email>colin@mollenhour.com</email></author></authors>
<date>2017-05-12</date>
<time>13:02:56</time>
<date>2017-07-07</date>
<time>13:01:28</time>
<contents><target name="magecommunity"><dir name="Cm"><dir name="RedisSession"><dir name="Model"><file name="Session.php" hash="8a751a32ac85da38237012f6c4ac9077"/></dir><dir name="etc"><file name="config.xml" hash="6b32aa3b331c4504c44a7c01a24a0d3d"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Cm_RedisSession.xml" hash="f36278d589fa562d20d5182c8864a3dd"/></dir></target></contents>
<compatible/>
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Lib_Credis</name><channel>community</channel><min>1.9.3.3</min><max>1.9.3.3</max></package></required></dependencies>
<dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php><package><name>Lib_Credis</name><channel>community</channel><min>1.9.3.4</min><max>1.9.3.4</max></package></required></dependencies>
</package>

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Loading

0 comments on commit ecd87b9

Please sign in to comment.