Skip to content

Instantly share code, notes, and snippets.

View piotrekkaminski's full-sized avatar

Piotr Kaminski piotrekkaminski

View GitHub Profile
@piotrekkaminski
piotrekkaminski / Magento Community Edition Security Issue Patch
Created December 11, 2013 06:37
Please see file below for version to patch mapping information.
No need to install this patch for Magento Community Edition version 1.8.0.0 or later
PATCH_SUPEE-2530_CE_1.4.0.0-1.4.0.1_v1.sh for:
CE v1.4.0.0
CE v1.4.0.1
PATCH_SUPEE-2529_CE_1.4.1.0-1.5.0.1_v1.sh for:
CE v1.4.1.0
CE v1.4.1.1
CE v1.4.2.0
diff --git a/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php b/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php
index 773c781..4801473 100644
--- a/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php
+++ b/app/code/core/Mage/Core/Model/Url/Rewrite/Request.php
@@ -140,7 +140,7 @@ class Mage_Core_Model_Url_Rewrite_Request
$fromStore = $this->_request->getQuery('___from_store');
if (!$this->_rewrite->getId() && $fromStore) {
- $stores = $this->_app->getStores();
+ $stores = $this->_app->getStores(false, true);
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@piotrekkaminski
piotrekkaminski / PATCH_SUPEE-3203_EE_1.13.1.0_v1.sh
Created July 11, 2014 23:32
SUPEE-3202: Bundle Products Error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'selection_id' cannot be null
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@piotrekkaminski
piotrekkaminski / PATCH_SUPEE-3762_EE_1.14.0.1_v1.sh
Created July 11, 2014 23:44
SUPEE-3762: Navigating to the SOAP V2 WSDL and index page causes only the install page to display
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@piotrekkaminski
piotrekkaminski / PATCH_SUPEE-389_EE_1.12.0.2_v2.sh
Created September 5, 2014 20:18
SUPEE-389: Every time the catalog URL is rendexed, a new custom rewrite is created
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@piotrekkaminski
piotrekkaminski / PATCH_SUPEE-1800_EE_1.12.0.2_v1_v1.sh
Created October 6, 2014 19:46
Issues with customer created_at dates
#!/bin/bash
# Patch apllying tool template
# v0.1.2
# (c) Copyright 2013. Magento Inc.
#
# DO NOT CHANGE ANY LINE IN THIS FILE.
# 1. Check required system tools
_check_installed_tools() {
local missed=""
@piotrekkaminski
piotrekkaminski / swatchesfallback.patch
Last active August 29, 2015 14:09
[PATCH] Fixed issue where language fallback swatch images would not be loaded from media/wysiwyg/swatches
diff --git a/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php b/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
index 2de62ed..c284811 100644
--- a/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
+++ b/app/code/core/Mage/ConfigurableSwatches/Helper/Productimg.php
@@ -227,6 +227,8 @@ class Mage_ConfigurableSwatches_Helper_Productimg extends Mage_Core_Helper_Abstr
$fileExt = self::SWATCH_FILE_EXT;
}
+ // normalize to all lower case so that value can be used as array key below
+ $value = Mage_ConfigurableSwatches_Helper_Data::normalizeKey($value);
@piotrekkaminski
piotrekkaminski / gist:8315e60a5ac3650f10d3
Created February 26, 2015 18:48
Popular Magento 1 dev tools
Commerce Bug http://store.pulsestorm.net/products/commerce-bug-2
Magicento http://magicento.com/
n98-magerun https://github.com/netz98/n98-magerun
Modman https://github.com/colinmollenhour/modman
AOE_Profiler https://github.com/AOEpeople/Aoe_Profiler
Index: downloader/lib/Mage/HTTP/Client/Curl.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- downloader/lib/Mage/HTTP/Client/Curl.php (revision 775b8b8d41a4079655efb9e64fc869baf44646e5)
+++ downloader/lib/Mage/HTTP/Client/Curl.php (revision )
@@ -379,7 +379,7 @@
$this->curlOption(CURLOPT_URL, $uri);