Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
filefield_sources
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
filefield_sources
Merge requests
!5
Issue
#3336268
: Drupal 10 compatibility
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Open
Issue
#3336268
: Drupal 10 compatibility
issue/filefield_sources-3336268:3336268-drupal-10-compatibility
into
2.0.x
Overview
0
Commits
16
Pipelines
2
Changes
6
Open
Issue #3336268: Drupal 10 compatibility
James Glasgow
requested to merge
issue/filefield_sources-3336268:3336268-drupal-10-compatibility
into
2.0.x
Jan 27, 2023
Overview
0
Commits
16
Pipelines
2
Changes
6
0
0
Merge request reports
Compare
2.0.x
version 11
a3f5a5c3
Jul 24, 2024
version 10
d0a1dcef
Jul 11, 2024
version 9
02b1d6a7
Jan 7, 2024
version 8
2b9cd743
Jan 7, 2024
version 7
966a3e3e
Dec 12, 2023
version 6
0f425d10
Dec 11, 2023
version 5
1c561fdd
Nov 2, 2023
version 4
89f0604c
Aug 15, 2023
version 3
2795573c
Mar 23, 2023
version 2
1130da57
Mar 22, 2023
version 1
dfe015ac
Jan 27, 2023
2.0.x (HEAD)
and
latest version
latest version
a3f5a5c3
16 commits,
Jul 24, 2024
version 11
a3f5a5c3
19 commits,
Jul 24, 2024
version 10
d0a1dcef
15 commits,
Jul 11, 2024
version 9
02b1d6a7
14 commits,
Jan 7, 2024
version 8
2b9cd743
13 commits,
Jan 7, 2024
version 7
966a3e3e
12 commits,
Dec 12, 2023
version 6
0f425d10
7 commits,
Dec 11, 2023
version 5
1c561fdd
6 commits,
Nov 2, 2023
version 4
89f0604c
5 commits,
Aug 15, 2023
version 3
2795573c
4 commits,
Mar 23, 2023
version 2
1130da57
3 commits,
Mar 22, 2023
version 1
dfe015ac
2 commits,
Jan 27, 2023
6 files
+
52
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
src/Plugin/FilefieldSource/Clipboard.php
+
1
−
1
View file @ dd94983c
Edit in single-file editor
Open in Web IDE
Show full file
@@ -58,7 +58,7 @@ class Clipboard implements FilefieldSourceInterface {
$filename
=
trim
(
$input
[
'filefield_clipboard'
][
'filename'
]);
$filename
=
preg_replace
(
'/\.[a-z0-9]{3,4}$/'
,
''
,
$filename
);
$filename
=
(
empty
(
$filename
)
?
'paste_'
.
REQUEST_TIME
:
$filename
)
.
'.'
.
$extension
;
$filename
=
(
empty
(
$filename
)
?
'paste_'
.
\Drupal
::
time
()
->
getRequestTime
()
:
$filename
)
.
'.'
.
$extension
;
$filepath
=
\Drupal
::
service
(
'file_system'
)
->
createFilename
(
$filename
,
$temporary_directory
);
$copy_success
=
FALSE
;
Loading