- Issue created by @Summit
- ๐ฎ๐ณIndia sidharth_soman Bangalore
I've added a check for whether or not the third parameter is null. Please test this patch.
- ๐ฎ๐ณIndia chetan 11
chetan 11 โ made their first commit to this issueโs fork.
- Open on Drupal.org โCore: 10.1.4 + Environment: PHP 7.4 & MySQL 5.7last update
11 months ago Waiting for branch to pass - Status changed to Needs review
11 months ago 11:50am 19 December 2023 - Open on Drupal.org โCore: 10.1.4 + Environment: PHP 7.4 & MySQL 5.7last update
11 months ago Waiting for branch to pass - Status changed to RTBC
11 months ago 1:26pm 19 December 2023 - Status changed to Needs work
10 months ago 5:59pm 19 January 2024 - ๐ต๐นPortugal jcnventura
If the $long_url parameter is empty, something very strange is happenning, as you're trying to validate an empty URL.
Normally the solution I would do here would be to add this code at the start of the shurly_validate_long() function:
if (empty($long_url)) { return FALSE; }
Can you please check if this fixes the warning, and if the code still works as before?
- Status changed to Closed: cannot reproduce
6 months ago 6:54pm 1 June 2024 - Status changed to Active
4 months ago 12:57pm 20 July 2024 - ๐ณ๐ฑNetherlands Summit
Hi,
Sorry for late reply.
With Patch https://www.drup al.org/files/issues/2023-12-19/3409669.patch warning still occured.
But with check of https://www.drupal.org/project/shurly/issues/3409669#comment-15406117 ๐ Deprecated function: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in shurly_validate_long() Closed: cannot reproduce it seems to be gone away.Can you please build this in the patch please?
Thanks in advance,
greetings, - Status changed to Needs review
4 months ago 1:20pm 24 July 2024 - Status changed to RTBC
4 months ago 10:39am 25 July 2024 -
jcnventura โ
committed 3857acb4 on 8.x-1.x
Issue #3409669 by chetan 11, ananya.k, sidharth_soman, Summit,...
-
jcnventura โ
committed 3857acb4 on 8.x-1.x
- Status changed to Fixed
4 months ago 6:48pm 25 July 2024 Automatically closed - issue fixed for 2 weeks with no activity.