https://bugzilla.wikimedia.org/show_bug.cgi?id=30042
--- Comment #20 from Van de Bugger <[email protected]> 2011-11-16 00:11:01 UTC --- @Sumana Harihareswara: Thanks for attracting attention to the problem. > it seems to disallow any occurrence of { and }, while I think it only needs to > disallow {{ and }}. Hmm… May be. Is it the only issue? Will attach new patch soon. > It rejects any input that has a { or | or }, although this might be perfectly > valid. I agree that for normal text inputs usage of these characters is > unusual. The situation is probably different for textareas. Proposed patch does not affect textareas. Perfectly valid? What do you mean? Balanced braces so Mediawiki parser will interpret them as template/magic word/parser function invocation? We already talked about it. Currently editing a page trough form is "fragile" -- a user editing a page through a form can easily break code. The page will be displayed incorrectly, and even editing the page through the form will not work as expected -- some values will be lost. An experienced user can easily fix the problem by editing the page source, but an inexperienced user will be very frustrated. To me this is unacceptable. Forms must not accept invalid input. I implemented a simple patch, so user will be warned about invalid characters. Yes, users can not use templates, magic words and other stuff in form fields. But do you really think all this stuff is actually required in forms? If somebody wants to use templates, it means this person is aware about template syntax, and, therefore, can relatively easily edit pages directly. Having a script which can recognize perfectly valid wikitext code means somebody should reimplement Mediawiki parser (~11000 lines of PHP code) in JavaScript. Will you? I won't. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
