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
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
Download
Patches
Plain diff
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
James Glasgow
requested to merge
issue/filefield_sources-3336268:3336268-drupal-10-compatibility
into
2.0.x
2 years ago
Overview
0
Commits
16
Pipelines
2
Changes
6
Expand
0
0
Merge request reports
Compare
2.0.x
version 11
a3f5a5c3
8 months ago
version 10
d0a1dcef
8 months ago
version 9
02b1d6a7
1 year ago
version 8
2b9cd743
1 year ago
version 7
966a3e3e
1 year ago
version 6
0f425d10
1 year ago
version 5
1c561fdd
1 year ago
version 4
89f0604c
1 year ago
version 3
2795573c
2 years ago
version 2
1130da57
2 years ago
version 1
dfe015ac
2 years ago
2.0.x (HEAD)
and
latest version
latest version
a3f5a5c3
16 commits,
8 months ago
version 11
a3f5a5c3
19 commits,
8 months ago
version 10
d0a1dcef
15 commits,
8 months ago
version 9
02b1d6a7
14 commits,
1 year ago
version 8
2b9cd743
13 commits,
1 year ago
version 7
966a3e3e
12 commits,
1 year ago
version 6
0f425d10
7 commits,
1 year ago
version 5
1c561fdd
6 commits,
1 year ago
version 4
89f0604c
5 commits,
1 year ago
version 3
2795573c
4 commits,
2 years ago
version 2
1130da57
3 commits,
2 years ago
version 1
dfe015ac
2 commits,
2 years ago
6 files
+
52
−
23
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
6
Search (e.g. *.vue) (Ctrl+P)
src/Plugin/FilefieldSource/Clipboard.php
+
1
−
1
Options
@@ -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