View Issue Details

IDProjectCategoryView StatusLast Update
0007090OXID eShop (all versions)1. ----- eShop frontend -----public2020-02-12 08:08
ReporterHal_platzke 
PrioritynormalSeverityminorReproducibilityalways
Status acknowledgedResolutionopen 
Product Version6.1.5 
Target VersionFixed in Version 
Summary0007090: Oxscript handles relative URI without protocol as local file
DescriptionIf you pass "//cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.js" as include for oxscript,
it gets handle as a local file and wont load.

A relative URI without protocol is valid, see RFC 3986 Section 4.2:
http://www.ietf.org/rfc/rfc3986.txt

possible fix:
in file: OxidEsales\EshopCommunity\Core\ViewHelper\JavaScriptRegistrator.php:50
replace regex: #^https?://#
with: /^(https?:\/\/|\/\/)/
TagsNo tags attached.
ThemeAll
BrowserNot defined
PHP VersionNot defined
MySQL VersionNot defined

Activities

QA

2020-02-12 08:08

administrator   ~0013124

-MK