View Issue Details

IDProjectCategoryView StatusLast Update
0000569fileGeneralpublic2024-11-10 14:49
Reportersascha.zilli@gmail.com Assigned Tochristos  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platformx86_64OSalpineOS Version3.20
Product Version5.45 
Fixed in Version5.46 
Summary0000569: Misclassifies html file with embedded Javascript file as 'JavaScript source, ASCII text'
Descriptionthe attached file is detected as Javascript source file, although clearly a html file with embedded javscript
Steps To ReproduceCall `file MailerTest.php`
it will return "application/javascript" even though it should return "text/x-php"
Additional Informationpossibly a duplication of https://bugs.astron.com/view.php?id=563
TagsNo tags attached.

Activities

sascha.zilli@gmail.com

2024-11-08 13:45

reporter  

invoice1.html (3,302 bytes)   
<html xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xr="urn:ce.eu:en16931:2017:xoev-de:kosit:standard:xrechnung-1" xmlns:xrv="http://www.example.org/XRechnung-Viewer" lang="de">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <title>XRechnung</title>
    <meta name="viewport" content="width=device-width, user-scalable=yes, initial-scale=1.0">
    <style>

    *,
    *:after,
    *:before
    {
        box-sizing: border-box;
        -moz-box-sizing: border-box;
    }
    </style>
</head>
<body>
<form>
    <div class="menue">
        <div class="innen"><button type="button" class="tab" id="menueUebersicht" onclick="show(this);">Übersicht</button><button type="button" class="tab" id="menueDetails" onclick="show(this);">Details</button><button type="button" class="tab" id="menueZusaetze" onclick="show(this)">Zusätze</button><button type="button" class="tab" id="menueAnlagen" onclick="show(this)">Anlagen</button><button type="button" class="tab" id="menueLaufzettel" onclick="show(this)">Laufzettel</button></div>
    </div>
</form>
<div class="inhalt">
    <div class="innen">
        <div id="uebersicht" class="divShow">
            <div class="boxtabelle boxtabelleZweispaltig">
                <div class="boxzeile">
                    <div class="boxabstand"></div>
                </div>
            </div>
        </div>
    </div>
</div>
</body><script>
    var a = new Array("uebersicht", "details", "zusaetze", "anlagen", "laufzettel");
    var b = new Array("menueUebersicht", "menueDetails", "menueZusaetze", "menueAnlagen", "menueLaufzettel");

    function show(e) {
        var i = 0;
        var j = 1;
        for (var t = 0; t < b.length; t++) {
            if (b[t] === e.id) {
                i = t;
                if (i > 0) {
                    j = 0;
                } else {
                    j = i + 1;
                }
                break;
            }
        }
        e.setAttribute("class", "btnAktiv");
        for (var k = 0; k < b.length; k++) {
            if (k === i && (document.getElementById(a[k]) != null)) {
                document.getElementById(a[k]).style.display = "block";
                if (i === j)
                    j = i + 1;
            } else {
                if (document.getElementById(a[k]) != null) {
                    document.getElementById(a[j]).style.display = "none";
                    document.getElementById(b[j]).setAttribute("class", "btnInaktiv");
                    j += 1;
                }
            }
        }
    }
    window.onload = function () {
        document.getElementById(b[0]).setAttribute("class", "btnAktiv");
    }
    function base64_to_binary (data) {
    }

    function downloadData (element_id) {
    }

    (function (root, factory) {
        if (typeof define === 'function' && define.amd) {
            // AMD. Register as an anonymous module.
            define([], function () {
                factory(root);
            });
        } else factory(root);
        // node.js has always supported base64 conversions, while browsers that support
        // web workers support base64 too, but you may never know.
    })(typeof exports !== "undefined" ? exports: this, function (root) {
    });</script></html>
invoice1.html (3,302 bytes)   

christos

2024-11-10 14:49

manager   ~0004094

Fixed, thanks

Issue History

Date Modified Username Field Change
2024-11-08 13:45 sascha.zilli@gmail.com New Issue
2024-11-08 13:45 sascha.zilli@gmail.com File Added: invoice1.html
2024-11-10 14:48 christos Assigned To => christos
2024-11-10 14:48 christos Status new => assigned
2024-11-10 14:49 christos Status assigned => resolved
2024-11-10 14:49 christos Resolution open => fixed
2024-11-10 14:49 christos Fixed in Version => 5.46
2024-11-10 14:49 christos Note Added: 0004094