mootools-more.min.js non-ascii characters replaced by question marks

Bug #803900 reported by Bill Ruddock
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mootools (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

The minified mootools-more file (mootools-more.min.js) has question marks in place of foreign characters.
This introduces a syntax error in a regular expression in line 1, column 157662 that breaks the script for firefox.

I noticed this because phpmyadmin tries to use some features from the mootools more library.

Version affected: libjs-mootools_1.2.5~debian1-2
Versions NOT affected: 1.2.4.0~debian1-1, 1.3.2~debian1-1

Sample expected content:
return Form.Validator.getValidator("IsEmpty").test(a)||(/^¥?\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/).test(a.get("value"))}});

Actual content:
return Form.Validator.getValidator("IsEmpty").test(a)||(/^????\-?([1-9]{1}[0-9]{0,2}(\,[0-9]{3})*(\.[0-9]{0,2})?|[1-9]{1}\d*(\.[0-9]{0,2})?|0(\.[0-9]{0,2})?|(\.[0-9]{1,2})?)$/).test(a.get("value"))}});

ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: libjs-mootools 1.2.5~debian1-2
ProcVersionSignature: Ubuntu 2.6.38-8.42-generic-pae 2.6.38.2
Uname: Linux 2.6.38-8-generic-pae i686
Architecture: i386
CheckboxSubmission: af613d0071be360b97ad0c0c4824c134
CheckboxSystem: 8ad0a655cf1c95961a072152183cb49b
Date: Thu Jun 30 14:58:14 2011
Dependencies:

PackageArchitecture: all
ProcEnviron:
 LANGUAGE=en_GB:en
 PATH=(custom, no user)
 LANG=en_GB.utf8
 SHELL=/bin/bash
SourcePackage: mootools
UpgradeStatus: Upgraded to natty on 2011-05-06 (55 days ago)

Revision history for this message
Bill Ruddock (bill-ruddock) wrote :
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in mootools (Ubuntu):
status: New → Confirmed
Revision history for this message
Peter Wu (lekensteyn) wrote :

The same applies to the unminified version mootools-more.js

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.