Ticket #1701 (assigned defect)

Opened 5 years ago

Last modified 9 months ago

Switch of language don't work with URIs having a '-' between....

Reported by: michas Assigned to: demian (accepted)
Priority: high Milestone: 1.1
Component: translations Severity: open
Keywords: Cc:

Description

There is an error in SGL2.js in current official version 0.6.6. on line 158 var webRoot = SGL_JS_WEBROOT.match(/(http[s]?\:\/\/[\w\.]+([\:0-9]+)?)/i)[0];

if you have URL like http://www.my-domain.de the variable webRoot contains only string "http://www.my". RegEx? is not correct, because \w is wrong at this position.

Change History

02/22/09 16:56:14 changed by demian

  • owner changed from sombody to lakiboy.
  • milestone set to 0.6.5.

02/08/10 14:30:39 changed by demian

  • milestone changed from 0.6.5 to 0.9.1 - polishing.

02/22/10 10:27:10 changed by demian

  • summary changed from Swich of language don't work with URIs having a '-' between.... to Switch of language don't work with URIs having a '-' between.....

02/26/13 13:30:31 changed by demian

  • owner changed from lakiboy to demian.
  • status changed from new to assigned.