Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/browser-kit/Client.php @ 13:5fb285c0d0e3
Update Drupal core to 8.4.7 via Composer. Security update; I *think* we've
been lucky to get away with this so far, as we don't support self-registration
which seems to be used by the so-called "drupalgeddon 2" attack that 8.4.5
was vulnerable to.
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:33:26 +0100 |
parents | 7a779792577d |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
12:7a779792577d | 13:5fb285c0d0e3 |
---|---|
76 { | 76 { |
77 return $this->followRedirects; | 77 return $this->followRedirects; |
78 } | 78 } |
79 | 79 |
80 /** | 80 /** |
81 * Sets the maximum number of requests that crawler can follow. | 81 * Sets the maximum number of redirects that crawler can follow. |
82 * | 82 * |
83 * @param int $maxRedirects | 83 * @param int $maxRedirects |
84 */ | 84 */ |
85 public function setMaxRedirects($maxRedirects) | 85 public function setMaxRedirects($maxRedirects) |
86 { | 86 { |
87 $this->maxRedirects = $maxRedirects < 0 ? -1 : $maxRedirects; | 87 $this->maxRedirects = $maxRedirects < 0 ? -1 : $maxRedirects; |
88 $this->followRedirects = -1 != $this->maxRedirects; | 88 $this->followRedirects = -1 != $this->maxRedirects; |
89 } | 89 } |
90 | 90 |
91 /** | 91 /** |
92 * Returns the maximum number of requests that crawler can follow. | 92 * Returns the maximum number of redirects that crawler can follow. |
93 * | 93 * |
94 * @return int | 94 * @return int |
95 */ | 95 */ |
96 public function getMaxRedirects() | 96 public function getMaxRedirects() |
97 { | 97 { |