aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Dawid Wróbel <me@dawidwrobel.com> 2024-04-01 23:44:45 +0200
committerGravatar GitHub <noreply@github.com> 2024-04-01 23:44:45 +0200
commita12bab9eedcf149778ad47e2ee84346e7b0d2016 (patch)
tree48ef31f9f1742d688e27c80ad03f68abda2a57d7
parentb4659786cb682096a46c0b6ca8a54505aa0ba49d (diff)
downloadrss-bridge-a12bab9eedcf149778ad47e2ee84346e7b0d2016.tar.gz
rss-bridge-a12bab9eedcf149778ad47e2ee84346e7b0d2016.tar.zst
rss-bridge-a12bab9eedcf149778ad47e2ee84346e7b0d2016.zip
[AllegroBridge] ask for a complete cookie string, mere wcdx works no more (#4048)
-rw-r--r--bridges/AllegroBridge.php15
1 files changed, 6 insertions, 9 deletions
diff --git a/bridges/AllegroBridge.php b/bridges/AllegroBridge.php
index 7cad11f1..04121257 100644
--- a/bridges/AllegroBridge.php
+++ b/bridges/AllegroBridge.php
@@ -13,12 +13,9 @@ class AllegroBridge extends BridgeAbstract
'exampleValue' => 'https://allegro.pl/kategoria/swieze-warzywa-cebula-318660',
'required' => true,
],
- 'sessioncookie' => [
- 'name' => 'The \'wdctx\' session cookie',
- 'title' => 'Paste the value of the \'wdctx\' cookie from your browser if you want to prevent Allegro imposing rate limits',
- 'pattern' => '^.{70,};?$',
- // phpcs:ignore
- 'exampleValue' => 'v4.1-oCrmXTMqv2ppC21GTUCKLmUwRPP1ssQVALKuqwsZ1VXjcKgL2vO5TTRM5xMxS9GiyqxF1gAeyc-63dl0coUoBKXCXi_nAmr95yyqGpq2RAFoneZ4L399E8n6iYyemcuGARjAoSfjvLHJCEwvvHHynSgaxlFBu7hUnKfuy39zo9sSQdyTUjotJg3CAZ53q9v2raAnPCyGOAR4ytRILd9p24EJnxp7_oR0XbVPIo1hDa4WmjXFOxph8rHaO5tWd',
+ 'cookie' => [
+ 'name' => 'The complete cookie value',
+ 'title' => 'Paste the value of the cookie value from your browser if you want to prevent Allegro imposing rate limits',
'required' => false,
],
'includeSponsoredOffers' => [
@@ -70,9 +67,9 @@ class AllegroBridge extends BridgeAbstract
$opts = [];
- // If a session cookie is provided
- if ($sessioncookie = $this->getInput('sessioncookie')) {
- $opts[CURLOPT_COOKIE] = 'wdctx=' . $sessioncookie;
+ // If a cookie is provided
+ if ($cookie = $this->getInput('cookie')) {
+ $opts[CURLOPT_COOKIE] = $cookie;
}
$html = getSimpleHTMLDOM($url, [], $opts);