Merge lp:~openerp-dev/openerp-web/6.1-opw-573531-rgo into lp:openerp-web/6.1

Proposed by Ravi Gohil (OpenERP)
Status: Merged
Approved by: Naresh(OpenERP)
Approved revision: 2298
Merged at revision: 2318
Proposed branch: lp:~openerp-dev/openerp-web/6.1-opw-573531-rgo
Merge into: lp:openerp-web/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
addons/web/static/src/xml/base.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openerp-web/6.1-opw-573531-rgo
Reviewer Review Type Date Requested Status
Naresh(OpenERP) (community) Approve
Review via email: mp+101062@code.launchpad.net

Description of the change

Hello,

Web-Client allows user to set a New Database name with special characters while restoring a database.

This fix restricts naming database with special characters and allows only characters which are allowed by creation of database.

Kindly review it.

Thanks.

To post a comment you must log in.
Revision history for this message
Naresh(OpenERP) (nch-openerp) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'addons/web/static/src/xml/base.xml'
2--- addons/web/static/src/xml/base.xml 2012-03-20 10:56:01 +0000
3+++ addons/web/static/src/xml/base.xml 2012-04-06 05:50:24 +0000
4@@ -189,7 +189,7 @@
5 </tr>
6 <tr>
7 <td><label for="new_db">New database name:</label></td>
8- <td><input type="text" name="new_db" class="required"/></td>
9+ <td><input type="text" name="new_db" class="required" matches="^[a-zA-Z][a-zA-Z0-9_]+$"/></td>
10 </tr>
11 <tr>
12 <td colspan="2" align="right"><button class="oe_button">Restore</button></td>