balazs-endresz/jquery-translate

the // in http:// is interpreted as comment-line

GoogleCodeExporter opened this issue · 1 comments

jquery-translate version: 1.4.7
jQuery version: 1.7.1
browser: firefox
OS: windoze 7


my website's is using "scripzip" (a PHP script) to gzip the javascript-files. 
it automatically removes all comments.
And this is exactly the source of the problem. In Line 451 (the getScript-Part) 
theres a http:// and a http://. the doubleslash is interpreted as a comment and 
therefore removed.

the solution is very, very simple:
put one / right after the http: or https:
and the other / right before www.



so this snipped will solve the problem in line 451:
$.getScript(( (...docu...=='https:')?'https:/':'http:/') + 
    "/www.google.com ....




i know, its not a direct problem of jquery-translate, more a problem of 
scripzip. but the solution is SO SIMPLE and will not cause any other problems, 
why not submitting it to the developer?

Original issue reported on code.google.com by menbe...@gmail.com on 1 Dec 2011 at 7:17

Why on earth are you using such faulty software? I'm sorry but I'm not going to 
"fix" it :)

Original comment by balazs.endresz on 3 Dec 2011 at 2:34

  • Changed state: WontFix