Closed (duplicate)
Project:
Dynamic Rendering
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
27 Jun 2009 at 14:02 UTC
Updated:
19 Jul 2010 at 18:47 UTC
We are using a "no-ip.org" subdomain for our development environment. When creating a new sifr3 rule, the rules are saved to /files/render/sifr3-rules.js.
The variables for the rule are named after the URL. However, when the URL contains a - the variable name will be invalid causing a javascript error.
We changed the variable names manually to get sifr working.
Suggestion:
Replace - with a underscore for the variable names.
Cheers
Comments
Comment #1
Alex Lawrence commentedChange plugins\sifr3.inc line 389 from
$rule['fontname'] = preg_replace('@[^a-zA-Z0-9_-]@', '', $rule['font']);
to
$rule['fontname'] = preg_replace('@[^a-zA-Z0-9_]@', '', $rule['font']);
and everything is fine.
Comment #2
froboyMarked as duplicate of #462544: Problem with uploading sIFR font files with hyphens in the filename