JaquelineBrandao / yii

Automatically exported from code.google.com/p/yii
0 stars 0 forks source link

CJavaScript::quote #832

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. go to http://validator.aborla.net/
2. validate http://www.yiiframework.com/demos/blog/index.php/site/contact
3. 94 line 

"</" should be escaped in JS with backslash, with end result like "<\/"

Yii Framework 1.0.11

Fix is simple: 

1)class CJavaScript
2)public static function quote
3)add additional array element ( '</'=>'<\/' ) for second array ( $forUrl
== false )

Original issue reported on code.google.com by benkev...@gmail.com on 15 Jan 2010 at 2:13

GoogleCodeExporter commented 9 years ago

Original comment by qiang.xue on 1 Feb 2010 at 9:09

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1783.

Original comment by qiang.xue on 1 Feb 2010 at 9:12

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/yiisoft/yii/issues/21

Original comment by qiang.xue on 15 Feb 2012 at 6:36

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/yiisoft/yii/issues/61

Original comment by qiang.xue on 15 Feb 2012 at 6:44