help-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-librejs] License script labeled as blocked


From: belgin
Subject: Re: [Help-librejs] License script labeled as blocked
Date: Sat, 04 Apr 2015 17:27:18 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.5.0

I've found that the server strips the comments from HTML files (including inline JS) before serving them. However, the JS that's being blocked is found here (line 26)

https://notabug.org/hp/gogs/src/master/templates/repo/bare.tmpl

Shouldn't it be considered trivial? It's only a this.select()

On 04.04.2015 11:34, belgin wrote:
Hello,

I'm trying to free notabug.org. I've reached a point (on my local repo) where the only thing stopping the site from having completely free JavaScript is an event handler.

I've added the following
        <script>
          /*
          @licstart  The following is the entire license notice for the
          JavaScript code in this page.

Copyright (c) 1998, 1999, 2000 Thai Open Source Software Center Ltd

Permission is hereby granted, free of charge, to any person obtaining
          a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to
          the following conditions:

The above copyright notice and this permission notice shall be included
          in all copies or substantial portions of the Software.

          THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
          SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

          @licend  The above is the entire license notice
          for the JavaScript code in this page.
          */
        </script>
in the <head> tag, before the scripts, after the scripts and anywhere I could possibly think of.

The problem is this script tag is being listed as blocked now, wherever I put it.

What am I doing wrong?






reply via email to

[Prev in Thread] Current Thread [Next in Thread]