https://bugzilla.wikimedia.org/show_bug.cgi?id=24807
Summary: "Attribut:Test" != SMWExporter::decodeURI
(SMWExporter::encodeURI ('Attribut:Test"))
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Semantic MediaWiki
AssignedTo: [email protected]
ReportedBy: [email protected]
Hi
Someone forgot to add the caracter ":" in the function decodeURI.
SMWExporter::encodeURI ("Attribut:Test") => Attribut-3ATest
but
SMWExporter::decodeURI ("Attribut-3ATest") => Attribut-3ATest !! ERROR
The good result is "Attribut:Test".
bye
karima
BEFORE MY FIX ------------------------------
static public function decodeURI( $uri ) {
$uri = str_replace( array( '-22', '-23', '-26', '-27', '-2B', '-21',
'-' ),
array( '"', '#', '&', "'", '+', '!', '%' ),
$uri );
$uri = str_replace( '-2D', '-', $uri );
return $uri;
}
AFTER FIX ----------------------------------------------------
static public function decodeURI( $uri ) {
$uri = str_replace( array('-3A', '-22', '-23', '-26', '-27', '-2B',
'-21', '-' ),
array( ':', '"', '#', '&', "'", '+', '!', '%' ),
$uri );
$uri = str_replace( '-2D', '-', $uri );
return $uri;
}
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l