Closed GoogleCodeExporter closed 9 years ago
I can't reproduce it, are you using rails_xss plugin?
I prefer to use conditional comments, user agent can be faked, and it's easy to
set
different css for different IE versions with conditional comments (when some IE
version works right)
Original comment by sergio.c...@gmail.com
on 26 May 2010 at 8:23
Original comment by sergio.c...@gmail.com
on 31 May 2010 at 7:56
I can reproduce the problem with brand-new project on rails 2.3.8:
I think the issue is that the comment that's supposed to do the "IE-only" magic
gets
escaped by Rail's new HTML-safe magic:
The HTML source looks like this:
---
<!--[if IE]><link href="/stylesheets/active_scaffold/default/stylesheet-ie.css?
1275467413" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
---
In Rails 2.3.5 the line looks like this:
---
<!--[if IE]><link href="/stylesheets/active_scaffold/default/stylesheet-ie.css?
1275468532" media="screen" rel="stylesheet" type="text/css" /><![endif]-->
---
This may be the reason:
http://github.com/rails/rails/commit/9415935902f120a9bac0bfce7129725a0db38ed3
I think this may break other things as well, so it should probably be addressed.
Original comment by wund...@gmail.com
on 2 Jun 2010 at 8:50
Are you using rails_xss plugin? rails 2.3.8 doesn't force escaping, has support
to
use rails_xss plugin to force escaping like rails 3.
ActiveScaffold doesn't support rails_xss, but now it's easy to support it
without
forcing to use it, so we can add support for rails_xss, but we need to know if
you're using rails_xss plugin
Original comment by sergio.c...@gmail.com
on 2 Jun 2010 at 11:32
Sorry for late response here. I'm not using rails_xss in my project.
Original comment by markqv...@gmail.com
on 2 Jun 2010 at 11:39
No, I am not using rails_xss, just plain 2.3.8. It seems they still have not
got it
quite right in 2.3.8, concatting strings with '+' still causes unwanted
escaping. :(
However, I just noticed that the master branch already has a fix (it's patch
3551c4,
http://github.com/activescaffold/active_scaffold/commit/3551c40c762c1c7a1967b35c
98efb1
7ccb1bb6a2). So switching to 'master' instead of rails 2.3 fixes the problem.
Maybe
that patch should also be merged into the 2.3 branch.
Original comment by wund...@gmail.com
on 2 Jun 2010 at 12:04
Oh, I thought it was master branch, so I couldn't reproduce it. It's backported
now
Original comment by sergio.c...@gmail.com
on 2 Jun 2010 at 2:44
Original issue reported on code.google.com by
markqv...@gmail.com
on 26 May 2010 at 5:05