| Summary: | When inserting the field (File name->File name), "[" become "%5B" and "]" become "%5D" | ||
|---|---|---|---|
| Product: | LibreOffice | Reporter: | spouilly |
| Component: | Writer | Assignee: | Caolán McNamara <caolan.mcnamara> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | cdan, LibreOffice |
| Priority: | medium | Keywords: | easyHack |
| Version: | 3.3.0 RC1 | ||
| Hardware: | x86 (IA32) | ||
| OS: | Linux (All) | ||
| Whiteboard: | |||
| Crash report or crash signature: | Regression By: | ||
| Attachments: | A first attempt at fixing this bug. | ||
|
Description
spouilly
2010-12-16 23:12:02 UTC
I suppose this might fit the 'EasyHacks' category - worth checking in the code, if it is only missing the conversion back from URL into a 'readable' filename. Created attachment 41512 [details]
A first attempt at fixing this bug.
I have seen that all other fields eventually end up calling INetURLObject::decode with INetURLObject::DECODE_WITH_CHARSET. I have changed the code to use INetURLObject::DECODE_WITH_CHARSET for FF_NAME too. I have tested it and it works as expected.
A review will be appreciated.
Seems perfectly reasonable to me, especially given the behaviour of the field entry which returns the name without the suffix Checked in your fix now, and added a cppunit test case in sw/qa/core for those SwFileNameFields EasyHack tags unification: only allowed in Whiteboard to make queries more easy and reliable Migrating Whiteboard tags to Keywords: (EasyHack) [NinjaEdit] |