Problem/Motivation
With "Advanced HTML/Text" field, richtext editor enabled, when I upload an inline-image, the field is stored in temporary mode in database. When cron task is enabled, the file is deleted when core detects the defined temporary time file is reached.
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | inline-image-is-stored-as-temporary-file.patch | 1.41 KB | Chetanac |
| #7 | 3005297-7.patch | 1.41 KB | Florent Jousseaume |
| #6 | 3005297-6.patch | 1.42 KB | jrockowitz |
| #6 | interdiff-3005297-5-6.txt | 652 bytes | jrockowitz |
| #5 | 3005297-5.patch | 1.31 KB | Florent Jousseaume |
Comments
Comment #2
jrockowitz commentedComment #3
Florent Jousseaume commentedHi !
I have a problem with your patch. Values are double quoted (\"file\" for example), so comparison between 'file' and '\"file\"' does not work. The UUID has the same problem, so I added a trim for each value. I don't know if it is a good practice, but I did not see something like that in DomXXXX class.
Comment #4
jrockowitz commentedCan we improve this cleanup code instead of fixing the attributes?
Comment #5
Florent Jousseaume commentedSorry... I just looked to the values... here is a new version.
Comment #6
jrockowitz commentedOf course, now I see that "there is a PHP function for that".
@see stripslashes()
Comment #7
Florent Jousseaume commentedHello, it seems OK for me, after testing it on my local environment.
I just modified the comment before stripslahes() methods.
Comment #9
jrockowitz commented@Florent Jousseaume Thanks for the help.
Comment #11
Chetanac commentedThis file is for webfom 6.0.3 .