8000 [HttpKernel] Add a test for semicolon in file storage test · Seldaek/symfony@b415efd · GitHub
[go: up one dir, main page]

Skip to content

Commit b415efd

Browse files
author
alexandresalome
committed
[HttpKernel] Add a test for semicolon in file storage test
1 parent 1c1215f commit b415efd

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/Symfony/Tests/Component/HttpKernel/Profiler/FileProfilerStorageTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,15 @@ public function testRetrieveByUrl()
130130
$profile->setUrl('http://foo.bar/_');
131131
self:: 8973 $storage->write($profile);
132132

133+
$profile = new Profile('semicolon');
134+
$profile->setIp('127.0.0.1');
135+
$profile->setUrl('http://foo.bar/;');
136+
self::$storage->write($profile);
137+
133138
$this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/\'', 10)), 1, '->find() accepts single quotes in URLs');
134139
$this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/"', 10)), 1, '->find() accepts double quotes in URLs');
135140
$this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo\\bar/', 10)), 1, '->find() accepts backslash in URLs');
141+
$this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/;', 10)), 1, '->find() accepts semicolon in URLs');
136142
$this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/%', 10)), 1, '->find() does not interpret a "%" as a wildcard in the URL');
137143
$this->assertEquals(count(self::$storage->find('127.0.0.1', 'http://foo.bar/_', 10)), 1, '->find() does not interpret a "_" as a wildcard in the URL');
138144
}

0 commit comments

Comments
 (0)
0