« Issue/4095 (Not able to escape characters inside property value) » : différence entre les versions

De Semantic MediaWiki - Sandbox
Aucun résumé des modifications
Aucun résumé des modifications
 
Ligne 33 : Ligne 33 :
|}
|}


I've configured the <code>$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;<code> option in <code>LocalSettings.php</code>.
I've configured the [https://www.semantic-mediawiki.org/wiki/Help:$smwgParserFeatures SMW_PARSER_UNSTRIP] option like this in <code>LocalSettings.php</code>:
<code>$smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;</code>.


== Additional unexpected behavior ==
== Additional unexpected behavior ==

Dernière version du 16 juin 2019 à 23:11

Input

a)

Entering the following markup:

[[Has text::Here comes my text | This is another text]]

Output

Produces the following results:

Here comes my text | This is another text

In my following setup, however, this example does not work like in this sandbox here. There, it produces simply the following error:

Property "Has text" (as page type) with input value "Here comes my text | This is another text" contains invalid characters or is incomplete and therefore can cause unexpected results during a query or annotation process.

Setup

My Setup:

System Version
MediaWiki 1.32.2
PHP 7.2.3 (cgi-fcgi)
MySQL 5.6.19-67.0-log
Semantic MediaWiki 3.0.2

I've configured the SMW_PARSER_UNSTRIP option like this in LocalSettings.php: $smwgParserFeatures = $smwgParserFeatures | SMW_PARSER_UNSTRIP;.

Additional unexpected behavior

When querying for the text it renders the

<nowiki>

tags not inside the text but as a text padding. This is surprising.

 Has textUsed to store strings of arbitrary length.
Issue/4095<nowiki>Here comes my text | This is another text</nowiki>
Issue/4095 (Not able to escape characters inside property value)<nowiki>Here comes my text | This is another text</nowiki>

Semantic MediaWiki issue

Les cookies nous aident à fournir nos services. En utilisant nos services, vous acceptez notre utilisation de cookies.