Bug Tracker

Ticket #1075 (closed bug: fixed)

Opened 2 years ago

Last modified 1 year ago

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

Reported by: bmatzner Assigned to: joern
Type: bug Priority: major
Milestone: Component: plugin
Version: 1.1.2 Keywords: metadata, firefox 1.0
Cc: Needs: Review

Description (last modified by joern) (diff)

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

Change History

Changed 2 years ago by joern

  • owner changed from john to joern
  • description changed from 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... to 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...

Changed 2 years ago by joern

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

Changed 1 year ago by joern

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.