Try to create new text file, for example, mypatch.patch and copy diffs from patch to it
diff --git app/code/core/Mage/Cms/Helper/Wysiwyg/Images.php app/code/core/Mage/Cms/Helper/Wysiwyg/Images.php
index 9e8d6be..b106d09 100644
--- app/code/core/Mage/Cms/Helper/Wysiwyg/Images.php
+++ app/code/core/Mage/Cms/Helper/Wysiwyg/Images.php
@@ -197,11 +197,11 @@ class Mage_Cms_Helper_Wysiwyg_Images extends Mage_Core_Helper_Abstract
public function getCurrentPath()
{
if (!$this->_currentPath) {
- $currentPath = $this->getStorageRoot();
- $path = $this->_getRequest()->getParam($this->getTreeNodeName());
- if ($path) {
- $path = $this->convertIdToPath($path);
- if (is_dir($path)) {
+ $currentPath = realpath($this->getStorageRoot());
+ $node = $this->_getRequest()->getParam($this->getTreeNodeName());
+ if ($node) {
+ $path = realpath($this->convertIdToPath($node));
+ if (is_dir($path) && false !== stripos($path, $currentPath)) {
$currentPath = $path;
}
}
Then copy it into root of your store and do:
patch -p0 < mypatch.patch
OR may be try to change
_check_installed_tools() {
to
function _check_installed_tools {
in base script