Forbid pasting content below a shortcut, to prevent loops on purge and other operations. Fixes bug #11855.
This commit is contained in:
parent
59bd99c243
commit
4f632b27fc
4 changed files with 51 additions and 2 deletions
|
|
@ -786,6 +786,19 @@ sub notLinked {
|
|||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 paste ( )
|
||||
|
||||
Pasting assets under a Shortcut can cause lots of problems, including infinite loops
|
||||
for operations like paste, and purge.
|
||||
|
||||
=cut
|
||||
|
||||
sub paste {
|
||||
return 0;
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
||||
=head2 prepareView ( )
|
||||
|
||||
See WebGUI::Asset::prepareView() for details. Extends the base class to call prepareView
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue