Compare commits

...

No commits in common. "sessionid" and "composer-install" have entirely different histories.

4 changed files with 43 additions and 42 deletions

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 fleurami
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

13
OxidAskYes.patch Normal file
View File

@ -0,0 +1,13 @@
--- src/Installer/Package/AbstractPackageInstaller_Original.php 2021-04-12 16:59:26.000000000 +0200
+++ src/Installer/Package/AbstractPackageInstaller.php 2021-04-29 16:16:31.000000000 +0200
@@ -198,9 +198,7 @@
*/
protected function askQuestion($messageToAsk)
{
- $userInput = $this->getIO()->ask($messageToAsk, 'N');
-
- return $this->isPositiveUserInput($userInput);
+ return true;
}
/**

View File

@ -1,29 +1,22 @@
# session id patch # oxid_patches
How many times you have thought about OXID and "Do you want to ..." -> YES
Don't do it again!
applicable for OXID 6.2 to 6.5.1 # first add this to your main composer file
## first install the composer patch package
```
composer require cweagans/composer-patches composer require cweagans/composer-patches
```
## add this to your main composer file # add this to your main composer file
```
"extra": { "extra": {
"patches": { "patches": {
"oxid-esales/oxideshop-ce": { "oxid-esales/oxideshop-composer-plugin": {
"sessionid fix": "Don't ask, simple install all new":
"https://git.d3data.de/D3Public/oxid_patches/raw/branch/sessionid/sessionid.patch" "https://git.d3data.de/D3Public/oxid_patches/raw/branch/composer-install/OxidAskYes.patch"
} }
}, },
"enable-patching": true "enable-patching": true
}, },
```
## run this command # run this command
```
rm -rf ./vendor/oxid-esales/oxideshop-ce
composer install composer install
```
Enjoy! Enjoy!

View File

@ -1,26 +0,0 @@
From 3076f4f5dcfde2118afe2674af94c27dbbe03152 Mon Sep 17 00:00:00 2001
From: Daniel Seifert <ds@shopmodule.com>
Date: Mon, 27 Feb 2023 12:14:11 +0100
Subject: [PATCH 1/1] force unset existing session when new session is
initialised
---
source/Core/Session.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/Core/Session.php b/source/Core/Session.php
index 29ec34762..91cad53db 100644
--- a/source/Core/Session.php
+++ b/source/Core/Session.php
@@ -370,7 +370,7 @@ class Session extends \OxidEsales\Eshop\Core\Base
}
}
- $sessionId = $this->_getNewSessionId(false);
+ $sessionId = $this->_getNewSessionId();
$this->setId($sessionId);
$this->setSessionCookie($sessionId);
--
2.26.1.windows.1