Skip to main content

Bug Tracker

Side navigation

#1075 closed bug (fixed)

Opened March 27, 2007 09:50AM UTC

Closed January 24, 2008 06:20PM UTC

MetaData plugin: Invalid quantifier error in Firefox 1.0 (with fix)

Reported by: bmatzner Owned by: joern
Priority: major Milestone:
Component: plugin Version: 1.1.2
Keywords: metadata, firefox 1.0 Cc:
Blocked by: Blocking:
Description

Unfortunately, the metadata plugin from SVN does not contain a version number or date, but I reproduced this in the current version as of March 27, 2007:

In line 95,

if( !/^{/.test(data) ) data = "{" + data + "}";

must be changed to

if ( data.indexOf( '{' )<0 ) data = "{" + data + "}";

so the plugin also works in Firefox 1.0 - I know this browser is not on the supported browser list, but this is an easy fix...

Attachments (0)
Change History (3)

Changed June 20, 2007 09:58PM UTC by joern comment:1

description: Unfortunately, the metadata plugin from SVN does not contain a version number or date, but I reproduced this in the current version as of March 27, 2007:\ \ In line 95,\ if( !/^{/.test(data) ) data = "{" + data + "}";\ \ must be changed to \ \ if ( data.indexOf( '{' )<0 ) data = "{" + data + "}";\ \ so the plugin also works in Firefox 1.0 - I know this browser is not on the supported browser list, but this is an easy fix...Unfortunately, the metadata plugin from SVN does not contain a version number or date, but I reproduced this in the current version as of March 27, 2007: \ \ In line 95, \ if( !/^{/.test(data) ) data = "{" + data + "}"; \ \ must be changed to \ \ if ( data.indexOf( '{' )<0 ) data = "{" + data + "}"; \ \ so the plugin also works in Firefox 1.0 - I know this browser is not on the supported browser list, but this is an easy fix...
owner: johnjoern

Changed June 21, 2007 11:18AM UTC by joern comment:2

It should be enough to escape the "illegal quantifier": if ( !/^\\{/.test(data) ) ...

Changed January 24, 2008 06:20PM UTC by joern comment:3

resolution: → fixed
status: newclosed