Last modified: 2011-12-02 22:53:54 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T27588, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 25588 - Faulty regexp breaks JS execution
Faulty regexp breaks JS execution
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
SemanticFormsInputs (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: s7eph4n
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-10-19 16:08 UTC by s7eph4n
Modified: 2011-12-02 22:53 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description s7eph4n 2010-10-19 16:08:42 UTC
I don't know if this extension tries to validate the regular expressions that someone may use but I ran into an interesting behavior. I was using this typo as a regexp:

  regexp=/^+\d{5,}/

And _all_ the validation in the form failed. Meaning, some of form fields were "mandatory", others used different, valid regexps but I was able to save the form even if I left "mandatory" fields blank or entered non-matching strings in the fields that had "input type=regexp". Fixed the typo above and the correct behavior was restored.

Semantic Forms Version 2.0.1, Semantic Forms Inputs Version 0.3.1.
Comment 1 s7eph4n 2011-12-02 22:53:54 UTC
Fixed in r105018

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links