mirror of
https://github.com/yiisoft/yii.git
synced 2026-03-03 06:44:07 +01:00
Fixes #4238: Fixed intolerance to nulls in CJavaScript::quote()
This commit is contained in:
committed by
Alexander Makarov
parent
46bf33ace0
commit
4874064325
@@ -42,4 +42,12 @@ class CJavaScriptTest extends CTestCase
|
||||
$output=CJavaScript::quote($input,true);
|
||||
$this->assertEquals('test%20%E2%80%A8%0Atest%20%E2%80%A9',$output);
|
||||
}
|
||||
|
||||
public function testQuoteWithNull()
|
||||
{
|
||||
$input=null;
|
||||
$output=CJavaScript::quote($input);
|
||||
$this->assertSame('',$output);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user