odoo/odoo — pull request #465 by franckbret (2014-06-11 08:53:04+00:00)
Title: Use encodeURIComponent in place of encodeURI for website new page title,...

... in order to escape special chars like question mark "?".

Impacted versions:

7.0 and above

Steps to reproduce:
Create a new cms page
Set a title ending with a question mark, something like "What's new ?"
Add page to menu checkbox must be checked (it's checked as default)
Click the "continue" button

Current behavior:
500: Internal Server Error
Error message:
pagenew() got an unexpected keyword argument '?add_menu'

As you can see the ending question mark "?" is not properly encoded and break because the keyword argument needed by python is prefixed with a "?" wich is the uri separator delimiter

Expected behavior:
A new page is created with title "What's new ?"