Comments (7)
I think html_safe is not good idea for Rails!just like PHP's magic-quotes-gpc
http://cn2.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
In PHP world,magic-quotes-gpc disabled default In the current PHP...
We dont need Rails auto escape <%=post.title%>,but <%=h post.title%>is good.Like php world,dont need php escaped with a backslash automatically
from will_paginate.
I can confirm this issue.
from will_paginate.
Can confirm likewise.
As a temporary fix, patched like so:
from will_paginate.
given that this feature is a rails 3 backport the rails 3 branch of will-paginate probably has some useful bits and pieces on it.
degcat, this isn't really the right place to discuss it, but I'd say it's needed & whitelisting is good.
from will_paginate.
I'm getting undefined method `paginate' when using rails3 branch. Any ideas?
from will_paginate.
I confirm the issue. Appeared with Rails 2.3.7, also available in Rails 2.3.8.
The guilty is the to_html
method which doesn't .html_safe
the internal html
variable.
from will_paginate.
duplicate of #19, but thanks for reporting
from will_paginate.
Related Issues (20)
- The @search variable appears to be empty. Did you forget to pass the collection object for will_paginate? HOT 1
- How to remember checkbox which has been selected in previous page? HOT 1
- Set custom total_pages value HOT 1
- Routes error causes will_paginate to crash HOT 4
- Rails 6.1 with page_entries_info bug HOT 6
- Page doesn't go top after clicking a different page number on mobile HOT 1
- [Bug] page_entries_info does not work any more with Rails 6.1.3 HOT 6
- "?page=false" is not a number. Add a configuration to skip the error and to convert it as 0, or 1 or something HOT 1
- Would it be possible to get one last release of `will_paginate`? HOT 1
- wrong number of arguments (given 2, expected 1) HOT 2
- Remove deprecated ARIA-DISABLED attribute from SPAN element
- Ruby 3.x - ArgumentError - wrong number of arguments (given 2, expected 1) HOT 1
- `raw_rnum_` being added to queried results and paged results wrong. HOT 3
- Wrong number of arguments (given 2, expected 1) HOT 4
- Re pagination sequel query HOT 3
- Página principal HOT 1
- New Gem Version HOT 1
- Custom link renderer broken by changes to `previous_or_next_page`
- Limit number of (pages of) results HOT 1
- frozen String error on line 108 of link_renderer.rb HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from will_paginate.