Skip to content

Commit abc19c2

Browse files
committed
appveyor test
1 parent 40381ab commit abc19c2

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/Configuration.php

+4
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,10 @@ private function addSessionSection(ArrayNodeDefinition $rootNode)
344344
->ifTrue(function ($v) {
345345
parse_str($v, $parsed);
346346

347+
if (implode('&', array_keys($parsed)) !== (string) $v) {
348+
throw new \Exception(var_export($parsed, true));
349+
}
350+
347351
return implode('&', array_keys($parsed)) !== (string) $v;
348352
})
349353
->thenInvalid('Session name %s contains illegal character(s)')

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/ConfigurationTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public function getTestValidSessionName()
6161
array(null),
6262
array('PHPSESSID'),
6363
array('a&b'),
64-
array(',_-!@#$%^*(){}\'\\:<>/?'),
64+
array(',_-!@#$%^*(){}\':<>/?'),
6565
);
6666
}
6767

0 commit comments

Comments
 (0)