mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-18 17:54:47 +01:00
added extra validations in case of id pattern validator misuse
This commit is contained in:
1 parent
52e85a8036
commit
48328bf33f
3 files changed
+103
-11
No files matched your search
+1
-1
@@ -391,7 +391,7 @@ func (f *FileField) Intercept(
|
||||
}
|
||||
func (f *FileField) getLatestOldValue(app App, record *Record) any {
|
||||
if !record.IsNew() {
|
||||
latestOriginal, err := app.FindRecordById(record.Collection(), record.Id)
|
||||
latestOriginal, err := app.FindRecordById(record.Collection(), record.Original().Id)
|
||||
if err == nil {
|
||||
return latestOriginal.GetRaw(f.Name)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user