Skip to content

Commit f3f2b02

Browse files
Unit test case postData modified
1 parent f42641c commit f3f2b02

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Block

1 file changed

+2
-2
lines changed

app/code/Magento/Cms/Test/Unit/Controller/Adminhtml/Block/SaveTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,11 +376,11 @@ public function testSaveAndClose()
376376
public function testSaveActionWithMarginalSpace()
377377
{
378378
$postData = [
379-
'title' => '"><img src=y onerror=prompt(document.domain)>;',
379+
'title' => 'unique_title_123',
380380
'identifier' => ' unique_title_123',
381381
'stores' => ['0'],
382382
'is_active' => true,
383-
'content' => '"><script>alert("cookie: "+document.cookie)</script>',
383+
'content' => '',
384384
'back' => 'continue'
385385
];
386386

0 commit comments

Comments
 (0)