Skip to content
Snippets Groups Projects
Commit 4a41e572 authored by catch's avatar catch
Browse files

Issue #3461155 by quietone, smustgrave: More spelling fixes, 22 words, in tests

parent be7c988b
No related branches found
No related tags found
No related merge requests found
Showing
with 62 additions and 75 deletions
...@@ -35,7 +35,6 @@ autoplay ...@@ -35,7 +35,6 @@ autoplay
autoreply autoreply
autosubmit autosubmit
backlink backlink
backlinks
backported backported
backporting backporting
backports backports
...@@ -58,14 +57,12 @@ bigpipe ...@@ -58,14 +57,12 @@ bigpipe
bitmask bitmask
bkmgtpezy bkmgtpezy
blockarticles blockarticles
blockbasic
blockcontent blockcontent
blockfooter blockfooter
blocknodebundle blocknodebundle
blockquotes blockquotes
blockrecipe blockrecipe
blockrelated blockrelated
bodyless
boing boing
bovigo bovigo
brotli brotli
...@@ -215,7 +212,6 @@ etag ...@@ -215,7 +212,6 @@ etag
eurozone eurozone
evenodd evenodd
eventhandler eventhandler
exitcode
expirable expirable
extlink extlink
extrasmall extrasmall
...@@ -257,7 +253,6 @@ fudgy ...@@ -257,7 +253,6 @@ fudgy
fulldata fulldata
fulldate fulldate
fulltext fulltext
funic
gabilondo gabilondo
gids gids
gloop gloop
...@@ -265,7 +260,6 @@ greeking ...@@ -265,7 +260,6 @@ greeking
gripsmall gripsmall
groupable groupable
groupby groupby
groupname
groupwise groupwise
guzzlehttp guzzlehttp
hande hande
...@@ -301,7 +295,6 @@ javascripts ...@@ -301,7 +295,6 @@ javascripts
jessebeach jessebeach
jqueryui jqueryui
jsonlint jsonlint
jssdk
justinrainbow justinrainbow
keyevent keyevent
keypresses keypresses
...@@ -316,7 +309,6 @@ lified ...@@ -316,7 +309,6 @@ lified
lightninggreen lightninggreen
linkability linkability
linkback linkback
linkgenerator
linkification linkification
linkset linkset
linktext linktext
...@@ -331,15 +323,12 @@ lolspeak ...@@ -331,15 +323,12 @@ lolspeak
longblob longblob
longerthan longerthan
longtext longtext
loquesea
lrdd lrdd
lstitle lstitle
ltitle ltitle
lzma lzma
mainpage mainpage
mank
maryjane maryjane
matchout
maximumred maximumred
maxlifetime maxlifetime
maynot maynot
...@@ -368,11 +357,9 @@ moderatable ...@@ -368,11 +357,9 @@ moderatable
modernizr modernizr
modulenarrow modulenarrow
mojito mojito
montag
msgctxt msgctxt
msgid msgid
msgstr msgstr
mucho
mulrev mulrev
mulrevpub mulrevpub
multibuys multibuys
...@@ -382,7 +369,6 @@ multisite ...@@ -382,7 +369,6 @@ multisite
multistep multistep
multivalue multivalue
multivalued multivalued
muuuh
myclabs myclabs
mysqladmin mysqladmin
mysqldump mysqldump
...@@ -398,8 +384,6 @@ nids ...@@ -398,8 +384,6 @@ nids
nightwatch nightwatch
nightwatchjs nightwatchjs
nikic nikic
nmsgid
nmsgstr
nntp nntp
noadd noadd
nocache nocache
...@@ -496,7 +480,6 @@ quickstart ...@@ -496,7 +480,6 @@ quickstart
quinlan quinlan
qvalue qvalue
qvalues qvalues
qwer
ralouphie ralouphie
rasterizable rasterizable
rasterizes rasterizes
...@@ -552,7 +535,6 @@ sess ...@@ -552,7 +535,6 @@ sess
settingstray settingstray
shorterthan shorterthan
shortlink shortlink
silverlight
singlebyte singlebyte
sirbrillig sirbrillig
sisko sisko
...@@ -566,7 +548,6 @@ smtps ...@@ -566,7 +548,6 @@ smtps
somecompany somecompany
sortablejs sortablejs
specialchars specialchars
spiffiness
splitbutton splitbutton
splitbuttons splitbuttons
squaresmall squaresmall
...@@ -669,7 +650,6 @@ toplevel ...@@ -669,7 +650,6 @@ toplevel
torder torder
touchevents touchevents
trackback trackback
trailingslash
transferthick transferthick
translatables translatables
trayblock trayblock
...@@ -731,10 +711,8 @@ webservers ...@@ -731,10 +711,8 @@ webservers
widthx widthx
wordsafe wordsafe
writeln writeln
wwwrun
xbap xbap
xbitmap xbitmap
xfbml
xmlhttp xmlhttp
xmlhttprequest xmlhttprequest
xpsdocument xpsdocument
......
...@@ -42,8 +42,8 @@ public function testDeletingBlockContentShouldClearPluginCache(): void { ...@@ -42,8 +42,8 @@ public function testDeletingBlockContentShouldClearPluginCache(): void {
// Create a block content type. // Create a block content type.
$block_content_type = BlockContentType::create([ $block_content_type = BlockContentType::create([
'id' => 'spiffy', 'id' => 'spiffy',
'label' => 'Mucho spiffy', 'label' => 'Very spiffy',
'description' => "Provides a block type that increases your site's spiffiness by upto 11%", 'description' => "Provides a block type that increases your site's spiffy rating by upto 11%",
]); ]);
$block_content_type->save(); $block_content_type->save();
// And a block content entity. // And a block content entity.
......
...@@ -67,8 +67,8 @@ public function testReusableBlocksOnlyAreDerived(): void { ...@@ -67,8 +67,8 @@ public function testReusableBlocksOnlyAreDerived(): void {
// Create a block content type. // Create a block content type.
$block_content_type = BlockContentType::create([ $block_content_type = BlockContentType::create([
'id' => 'spiffy', 'id' => 'spiffy',
'label' => 'Mucho spiffy', 'label' => 'Very spiffy',
'description' => "Provides a block type that increases your site's spiffiness by up to 11%", 'description' => "Provides a block type that increases your site's spiffy rating by up to 11%",
]); ]);
$block_content_type->save(); $block_content_type->save();
// And a block content entity. // And a block content entity.
......
...@@ -75,8 +75,8 @@ protected function setUp(): void { ...@@ -75,8 +75,8 @@ protected function setUp(): void {
// Create a block content type. // Create a block content type.
$block_content_type = BlockContentType::create([ $block_content_type = BlockContentType::create([
'id' => 'spiffy', 'id' => 'spiffy',
'label' => 'Mucho spiffy', 'label' => 'Very spiffy',
'description' => "Provides a block type that increases your site's spiffiness by up to 11%", 'description' => "Provides a block type that increases your site's spiffy rating by up to 11%",
]); ]);
$block_content_type->save(); $block_content_type->save();
$this->entityTypeManager = $this->container->get('entity_type.manager'); $this->entityTypeManager = $this->container->get('entity_type.manager');
......
...@@ -43,8 +43,8 @@ public function testOperationLinks(): void { ...@@ -43,8 +43,8 @@ public function testOperationLinks(): void {
// Create a block content type. // Create a block content type.
BlockContentType::create([ BlockContentType::create([
'id' => 'spiffy', 'id' => 'spiffy',
'label' => 'Mucho spiffy', 'label' => 'Very spiffy',
'description' => "Provides a block type that increases your site's spiffiness by up to 11%", 'description' => "Provides a block type that increases your site's spiffy rating by up to 11%",
])->save(); ])->save();
// And a block content entity. // And a block content entity.
$block_content = BlockContent::create([ $block_content = BlockContent::create([
......
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
// cspell:ignore loquesea
/** /**
* Tests language-negotiation overrides are not on language-negotiation form. * Tests language-negotiation overrides are not on language-negotiation form.
* *
......
...@@ -734,15 +734,15 @@ public function testUrlFilter(): void { ...@@ -734,15 +734,15 @@ public function testUrlFilter(): void {
'<a href="mailto:' . $email_with_plus_sign . '">' . $email_with_plus_sign . '</a>' => TRUE, '<a href="mailto:' . $email_with_plus_sign . '">' . $email_with_plus_sign . '</a>' => TRUE,
], ],
// URI parts and special characters. // URI parts and special characters.
'http://trailingslash.com/ or www.trailingslash.com/ 'http://trailing-slash.com/ or www.trailing-slash.com/
http://host.com/some/path?query=foo&bar[baz]=beer#fragment or www.host.com/some/path?query=foo&bar[baz]=beer#fragment http://host.com/some/path?query=foo&bar[baz]=beer#fragment or www.host.com/some/path?query=foo&bar[baz]=beer#fragment
http://twitter.com/#!/example/status/22376963142324226 http://twitter.com/#!/example/status/22376963142324226
http://example.com/@user/ http://example.com/@user/
ftp://user:pass@ftp.example.com/~home/dir1 ftp://user:pass@ftp.example.com/~home/dir1
sftp://user@nonstandardport:222/dir sftp://user@nonstandardport:222/dir
ssh://192.168.0.100/srv/git/drupal.git' => [ ssh://192.168.0.100/srv/git/drupal.git' => [
'<a href="http://trailingslash.com/">http://trailingslash.com/</a>' => TRUE, '<a href="http://trailing-slash.com/">http://trailing-slash.com/</a>' => TRUE,
'<a href="http://www.trailingslash.com/">www.trailingslash.com/</a>' => TRUE, '<a href="http://www.trailing-slash.com/">www.trailing-slash.com/</a>' => TRUE,
'<a href="http://host.com/some/path?query=foo&amp;bar[baz]=beer#fragment">http://host.com/some/path?query=foo&amp;bar[baz]=beer#fragment</a>' => TRUE, '<a href="http://host.com/some/path?query=foo&amp;bar[baz]=beer#fragment">http://host.com/some/path?query=foo&amp;bar[baz]=beer#fragment</a>' => TRUE,
'<a href="http://www.host.com/some/path?query=foo&amp;bar[baz]=beer#fragment">www.host.com/some/path?query=foo&amp;bar[baz]=beer#fragment</a>' => TRUE, '<a href="http://www.host.com/some/path?query=foo&amp;bar[baz]=beer#fragment">www.host.com/some/path?query=foo&amp;bar[baz]=beer#fragment</a>' => TRUE,
'<a href="http://twitter.com/#!/example/status/22376963142324226">http://twitter.com/#!/example/status/22376963142324226</a>' => TRUE, '<a href="http://twitter.com/#!/example/status/22376963142324226">http://twitter.com/#!/example/status/22376963142324226</a>' => TRUE,
......
...@@ -8,6 +8,8 @@ ...@@ -8,6 +8,8 @@
use Drupal\FunctionalJavascriptTests\WebDriverTestBase; use Drupal\FunctionalJavascriptTests\WebDriverTestBase;
use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait; use Drupal\Tests\contextual\FunctionalJavascript\ContextualLinkClickTrait;
// cspell:ignore blockbasic
/** /**
* Base class for testing inline blocks. * Base class for testing inline blocks.
*/ */
......
...@@ -186,7 +186,7 @@ public function testClone(): void { ...@@ -186,7 +186,7 @@ public function testClone(): void {
$this->assertSame(['setting_1' => 'Default'], $this->sectionList->getSection(0)->getLayoutSettings()); $this->assertSame(['setting_1' => 'Default'], $this->sectionList->getSection(0)->getLayoutSettings());
$new_section_storage = clone $this->sectionList; $new_section_storage = clone $this->sectionList;
$new_section_storage->getSection(0)->setLayoutSettings(['asdf' => 'qwer']); $new_section_storage->getSection(0)->setLayoutSettings(['asdf' => 'foo']);
$this->assertSame(['setting_1' => 'Default'], $this->sectionList->getSection(0)->getLayoutSettings()); $this->assertSame(['setting_1' => 'Default'], $this->sectionList->getSection(0)->getLayoutSettings());
} }
......
...@@ -10,7 +10,8 @@ ...@@ -10,7 +10,8 @@
use Drupal\Core\Url; use Drupal\Core\Url;
use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
// cspell:ignore chien chiens deutsch januari lundi moutons műveletek svibanj // cspell:ignore chien chiens deutsch januari lundi montag moutons műveletek
// cspell:ignore svibanj
/** /**
* Tests the import of locale files. * Tests the import of locale files.
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
use Drupal\Core\StringTranslation\PluralTranslatableMarkup; use Drupal\Core\StringTranslation\PluralTranslatableMarkup;
use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
// cspell:ignore heure heures jours lundi ponedjeljak // cspell:ignore nmsgid nmsgstr heure heures jours lundi ponedjeljak
/** /**
* Tests plural handling for various languages. * Tests plural handling for various languages.
......
...@@ -339,7 +339,7 @@ public static function providerTestResponseFormat() { ...@@ -339,7 +339,7 @@ public static function providerTestResponseFormat() {
], ],
]; ];
$unsafe_method_bodyless_test_cases = [ $unsafe_method_no_body_test_cases = [
'unsafe methods without request bodies (DELETE): client requested no format, response should have the first acceptable format' => [ 'unsafe methods without request bodies (DELETE): client requested no format, response should have the first acceptable format' => [
['DELETE'], ['DELETE'],
['xml', 'json'], ['xml', 'json'],
...@@ -375,7 +375,7 @@ public static function providerTestResponseFormat() { ...@@ -375,7 +375,7 @@ public static function providerTestResponseFormat() {
], ],
]; ];
return $safe_method_test_cases + $unsafe_method_bodied_test_cases + $unsafe_method_bodyless_test_cases; return $safe_method_test_cases + $unsafe_method_bodied_test_cases + $unsafe_method_no_body_test_cases;
} }
/** /**
......
<div>link via the linkgenerator: {{ link('register', test_url) }}</div> <div>link via the link generator: {{ link('register', test_url) }}</div>
<div>link via the linkgenerator: {{ link('register', test_url, {'foo': 'bar'}) }}</div> <div>link via the link generator: {{ link('register', test_url, {'foo': 'bar'}) }}</div>
<div>link via the linkgenerator: {{ link('register', test_url_attribute, {'id': 'kitten'}) }}</div> <div>link via the link generator: {{ link('register', test_url_attribute, {'id': 'kitten'}) }}</div>
<div>link via the linkgenerator: {{ link('register', 'route:user.register', {'id': 'kitten'}) }}</div> <div>link via the link generator: {{ link('register', 'route:user.register', {'id': 'kitten'}) }}</div>
<div>link via the linkgenerator: {{ link('register', 'route:user.register', attributes) }}</div> <div>link via the link generator: {{ link('register', 'route:user.register', attributes) }}</div>
{% set title %}<span>register</span>{% endset %} {% set title %}<span>register</span>{% endset %}
<div>link via the linkgenerator: {{ link(title, test_url) }}</div> <div>link via the link generator: {{ link(title, test_url) }}</div>
{% set title %}<span>register</span><svg></svg>{% endset %} {% set title %}<span>register</span><svg></svg>{% endset %}
<div>link via the linkgenerator: {{ link(title, test_url) }}</div> <div>link via the link generator: {{ link(title, test_url) }}</div>
<div>link via the linkgenerator: {{ link('register', test_url_attribute) }} {{ link('register', test_url_attribute) }}</div> <div>link via the link generator: {{ link('register', test_url_attribute) }} {{ link('register', test_url_attribute) }}</div>
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
use Drupal\Tests\BrowserTestBase; use Drupal\Tests\BrowserTestBase;
// cspell:ignore msword // cspell:ignore msword silverlight
/** /**
* Tests content negotiation. * Tests content negotiation.
......
...@@ -91,14 +91,14 @@ public function testTwigLinkGenerator(): void { ...@@ -91,14 +91,14 @@ public function testTwigLinkGenerator(): void {
$generated_url = Url::fromRoute('user.register', [], ['absolute' => TRUE])->toString(TRUE)->getGeneratedUrl(); $generated_url = Url::fromRoute('user.register', [], ['absolute' => TRUE])->toString(TRUE)->getGeneratedUrl();
$expected = [ $expected = [
'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE])), 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE])),
'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE, 'attributes' => ['foo' => 'bar']])), 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['absolute' => TRUE, 'attributes' => ['foo' => 'bar']])),
'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar', 'id' => 'kitten']])), 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar', 'id' => 'kitten']])),
'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['id' => 'kitten']])), 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['id' => 'kitten']])),
'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['class' => ['llama', 'kitten', 'panda']]])), 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['class' => ['llama', 'kitten', 'panda']]])),
'link via the linkgenerator: ' . $link_generator->generate(Markup::create('<span>register</span>'), new Url('user.register', [], ['absolute' => TRUE])), 'link via the link generator: ' . $link_generator->generate(Markup::create('<span>register</span>'), new Url('user.register', [], ['absolute' => TRUE])),
'link via the linkgenerator: <a href="' . $generated_url . '"><span>register</span><svg></svg></a>', 'link via the link generator: <a href="' . $generated_url . '"><span>register</span><svg></svg></a>',
'link via the linkgenerator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])) . ' ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])), 'link via the link generator: ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])) . ' ' . $link_generator->generate('register', new Url('user.register', [], ['attributes' => ['foo' => 'bar']])),
]; ];
// Verify that link() has the ability to bubble cacheability metadata: // Verify that link() has the ability to bubble cacheability metadata:
......
...@@ -52,7 +52,7 @@ class DefaultViewsTest extends ViewTestBase { ...@@ -52,7 +52,7 @@ class DefaultViewsTest extends ViewTestBase {
* @var array * @var array
*/ */
protected $viewArgMap = [ protected $viewArgMap = [
'backlinks' => [1], 'backlink' => [1],
'taxonomy_term' => [1], 'taxonomy_term' => [1],
'glossary' => ['all'], 'glossary' => ['all'],
]; ];
......
...@@ -30,6 +30,8 @@ ...@@ -30,6 +30,8 @@
use Symfony\Component\Console\Output\ConsoleOutput; use Symfony\Component\Console\Output\ConsoleOutput;
use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Request;
// cspell:ignore exitcode wwwrun
// Define some colors for display. // Define some colors for display.
// A nice calming green. // A nice calming green.
const SIMPLETEST_SCRIPT_COLOR_PASS = 32; const SIMPLETEST_SCRIPT_COLOR_PASS = 32;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
namespace Drupal\FunctionalTests\Installer; namespace Drupal\FunctionalTests\Installer;
// cspell:ignore enregistrer // cspell:ignore nmsgid nmsgstr enregistrer
/** /**
* Verifies that installing from existing configuration works. * Verifies that installing from existing configuration works.
......
...@@ -4,6 +4,8 @@ ...@@ -4,6 +4,8 @@
namespace Drupal\FunctionalTests\Installer; namespace Drupal\FunctionalTests\Installer;
// cspell:ignore nmsgid nmsgstr
/** /**
* Verifies that the early installer uses the correct language direction. * Verifies that the early installer uses the correct language direction.
* *
......
...@@ -55,46 +55,46 @@ public function testFormattableMarkupUri($string, $uri, $options, $expected): vo ...@@ -55,46 +55,46 @@ public function testFormattableMarkupUri($string, $uri, $options, $expected): vo
public static function providerTestFormattableMarkupUri() { public static function providerTestFormattableMarkupUri() {
$data = []; $data = [];
$data['routed-url'] = [ $data['routed-url'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'route:system.admin', 'route:system.admin',
[], [],
'Hey giraffe <a href="/admin">MUUUH</a>', 'Hey giraffe <a href="/admin">example</a>',
]; ];
$data['routed-with-query'] = [ $data['routed-with-query'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'route:system.admin', 'route:system.admin',
['query' => ['bar' => 'baz#']], ['query' => ['bar' => 'baz#']],
'Hey giraffe <a href="/admin?bar=baz%23">MUUUH</a>', 'Hey giraffe <a href="/admin?bar=baz%23">example</a>',
]; ];
$data['routed-with-fragment'] = [ $data['routed-with-fragment'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'route:system.admin', 'route:system.admin',
['fragment' => 'bar&lt;'], ['fragment' => 'bar&lt;'],
'Hey giraffe <a href="/admin#bar&amp;lt;">MUUUH</a>', 'Hey giraffe <a href="/admin#bar&amp;lt;">example</a>',
]; ];
$data['unrouted-url'] = [ $data['unrouted-url'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'base://foo', 'base://foo',
[], [],
'Hey giraffe <a href="/foo">MUUUH</a>', 'Hey giraffe <a href="/foo">example</a>',
]; ];
$data['unrouted-with-query'] = [ $data['unrouted-with-query'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'base://foo', 'base://foo',
['query' => ['bar' => 'baz#']], ['query' => ['bar' => 'baz#']],
'Hey giraffe <a href="/foo?bar=baz%23">MUUUH</a>', 'Hey giraffe <a href="/foo?bar=baz%23">example</a>',
]; ];
$data['unrouted-with-fragment'] = [ $data['unrouted-with-fragment'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'base://foo', 'base://foo',
['fragment' => 'bar&lt;'], ['fragment' => 'bar&lt;'],
'Hey giraffe <a href="/foo#bar&amp;lt;">MUUUH</a>', 'Hey giraffe <a href="/foo#bar&amp;lt;">example</a>',
]; ];
$data['mailto-protocol'] = [ $data['mailto-protocol'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'mailto:test@example.com', 'mailto:test@example.com',
[], [],
'Hey giraffe <a href="mailto:test@example.com">MUUUH</a>', 'Hey giraffe <a href="mailto:test@example.com">example</a>',
]; ];
return $data; return $data;
...@@ -117,19 +117,19 @@ public function testFormattableMarkupUriWithExceptionUri($string, $uri): void { ...@@ -117,19 +117,19 @@ public function testFormattableMarkupUriWithExceptionUri($string, $uri): void {
public static function providerTestFormattableMarkupUriWithException() { public static function providerTestFormattableMarkupUriWithException() {
$data = []; $data = [];
$data['js-protocol'] = [ $data['js-protocol'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
"javascript:alert('xss')", "javascript:alert('xss')",
]; ];
$data['js-with-fromCharCode'] = [ $data['js-with-fromCharCode'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
"javascript:alert(String.fromCharCode(88,83,83))", "javascript:alert(String.fromCharCode(88,83,83))",
]; ];
$data['non-url-with-colon'] = [ $data['non-url-with-colon'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
"llamas: they are not URLs", "llamas: they are not URLs",
]; ];
$data['non-url-with-html'] = [ $data['non-url-with-html'] = [
'Hey giraffe <a href=":url">MUUUH</a>', 'Hey giraffe <a href=":url">example</a>',
'<span>not a url</span>', '<span>not a url</span>',
]; ];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment