Skip to content

Commit 7a0e10c

Browse files
committed
Security: Social: Protect form to post in wall
1 parent a1a1e4d commit 7a0e10c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: main/inc/lib/social.lib.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2409,7 +2409,6 @@ public static function getScriptToGetOpenGraph(): string
24092409
public static function displayWallForm(string $urlForm): string
24102410
{
24112411
$form = self::getWallForm($urlForm);
2412-
$form->protect();
24132412

24142413
return Display::panel($form->returnForm(), get_lang('SocialWall'));
24152414
}
@@ -3397,6 +3396,7 @@ private static function getWallForm(string $urlForm): FormValidator
33973396
$form->addHtml('</div></div>');
33983397
$form->addHtml('</div>');
33993398
$form->addHidden('url_content', '');
3399+
$form->protect();
34003400

34013401
return $form;
34023402
}

0 commit comments

Comments
 (0)