dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "API: Allow to pass whitespaces in MultiValue"
[lhc/web/wiklou.git]
/
thumb.php
diff --git
a/thumb.php
b/thumb.php
index
7c3e757
..
02ac0b0
100644
(file)
--- a/
thumb.php
+++ b/
thumb.php
@@
-572,7
+572,7
@@
function wfExtractThumbParams( $file, $params ) {
* @return void
*/
function wfThumbErrorText( $status, $msgText ) {
* @return void
*/
function wfThumbErrorText( $status, $msgText ) {
- wfThumbError( $status, htmlspecialchars( $msgText ) );
+ wfThumbError( $status, htmlspecialchars( $msgText
, ENT_NOQUOTES
) );
}
/**
}
/**
@@
-602,9
+602,10
@@
function wfThumbError( $status, $msgHtml, $msgText = null, $context = [] ) {
if ( $wgShowHostnames ) {
header( 'X-MW-Thumbnail-Renderer: ' . wfHostname() );
$url = htmlspecialchars(
if ( $wgShowHostnames ) {
header( 'X-MW-Thumbnail-Renderer: ' . wfHostname() );
$url = htmlspecialchars(
- isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : ''
+ isset( $_SERVER['REQUEST_URI'] ) ? $_SERVER['REQUEST_URI'] : '',
+ ENT_NOQUOTES
);
);
- $hostname = htmlspecialchars( wfHostname() );
+ $hostname = htmlspecialchars( wfHostname()
, ENT_NOQUOTES
);
$debug = "<!-- $url -->\n<!-- $hostname -->\n";
} else {
$debug = '';
$debug = "<!-- $url -->\n<!-- $hostname -->\n";
} else {
$debug = '';