[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-04-13 Thread matej_suchanek
matej_suchanek closed this task as "Resolved". matej_suchanek claimed this task. matej_suchanek added a comment. Seems so. I suspect this is considered LanguageConverter syntax because `-{` and `}-` get escaped, but `{` or `}` alone don't. Some other inputs also get escaped, like

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-04-12 Thread Func
Func added a comment. In T278658#6992034 , @matej_suchanek wrote: > Very good idea! It seems not to break, but the form is now prefilled with `-` (not a big problem)... Maybe the text was escaped by nowiki or unstripNoWiki... TASK

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-04-12 Thread matej_suchanek
matej_suchanek added a comment. In T278658#6991639 , @Func wrote: > In T278658#6991622 , @Func wrote: > >> Oh, the problem is that title with big quote isn't a valid title, and

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-04-12 Thread Func
Func added a comment. In T278658#6991622 , @Func wrote: > Oh, the problem is that title with big quote isn't a valid title, and unpaired big quotes broke the parsing process. Maybe we can check the title in lua module, with

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-04-12 Thread Func
Func added a comment. Oh, the problem is that title with big quote isn't a valid title, and unpaired big quotes broke the parsing process. Maybe we can check the title in lua module, with `mw.title.new` and check the return value... TASK DETAIL https://phabricator.wikimedia.org/T278658

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-04-11 Thread matej_suchanek
matej_suchanek added a comment. In T278658#6984320 , @Func wrote: > Maybe add mark around $1 can slove it. $1 is already escaped, so this is unnecessary. Adding around $2 won't help because `{{urlencode:$2|PATH}}` returns nothing

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-04-08 Thread Func
Func added a comment. In T278658#6952684 , @matej_suchanek wrote: > Reopening because I don't know how to solve it locally (other than by reverting T263258 or even T132729

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-03-29 Thread matej_suchanek
matej_suchanek reopened this task as "Open". matej_suchanek added a comment. Reopening because I don't know how to solve it locally (other than by reverting T263258 or even T132729 ). TASK DETAIL

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-03-28 Thread Aklapper
Aklapper removed a project: Advanced-Search. Aklapper added a subscriber: matej_suchanek. Aklapper closed this task as "Invalid". Aklapper added a comment. Thanks for reporting. This looks like a local content issue (local overwrite for a default string) which needs to get fixed by editing

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-03-28 Thread DannyS712
DannyS712 added a comment. The issue is with https://www.wikidata.org/wiki/MediaWiki:Search-nonefound having `{{#switch:{{NAMESPACENUMBER:$1}}` and $1 being `-{` for the example problematic URL, which doesn't work because its an invalid title TASK DETAIL

[Wikidata-bugs] [Maniphest] T278658: Code break shown when searching "-{" on Wikidata

2021-03-28 Thread YFdyh000
YFdyh000 created this task. YFdyh000 added projects: Wikidata, Advanced-Search. Restricted Application added a subscriber: Aklapper. TASK DESCRIPTION Steps to Reproduce: 1. Open the https://www.wikidata.org/w/index.php?search=-%7B=Special%3ASearch Actual Results: "There were no