Skip to content

Commit

Permalink
merged branch pulzarraider/fix_profiler_test (PR #3455)
Browse files Browse the repository at this point in the history
Commits
-------

e8281cf SqliteProfilerStorage fix

Discussion
----------

[HttpKernel] SqliteProfilerStorage fix

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: yes
Fixes the following tickets: -
Todo: -
  • Loading branch information
fabpot committed Feb 27, 2012
2 parents 2d4fb8a + e8281cf commit f9f7640
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -57,17 +57,20 @@ public function testStoreSpecialCharsInUrl()
// The SQLite storage accepts special characters in URLs (Even though URLs are not
// supposed to contain them)
$profile = new Profile('simple_quote');
$profile->setUrl('127.0.0.1', 'http://foo.bar/\'');
$profile->setIp('127.0.0.1');
$profile->setUrl('http://foo.bar/\'');
self::$storage->write($profile);
$this->assertTrue(false !== self::$storage->read('simple_quote'), '->write() accepts single quotes in URL');

$profile = new Profile('double_quote');
$profile->setUrl('127.0.0.1', 'http://foo.bar/"');
$profile->setIp('127.0.0.1');
$profile->setUrl('http://foo.bar/"');
self::$storage->write($profile);
$this->assertTrue(false !== self::$storage->read('double_quote'), '->write() accepts double quotes in URL');

$profile = new Profile('backslash');
$profile->setUrl('127.0.0.1', 'http://foo.bar/\\');
$profile->setIp('127.0.0.1');
$profile->setUrl('http://foo.bar/\\');
self::$storage->write($profile);
$this->assertTrue(false !== self::$storage->read('backslash'), '->write() accpets backslash in URL');
}
Expand Down

0 comments on commit f9f7640

Please sign in to comment.