X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=plugins%2Fqrcode%2Fqrcode.php;fp=plugins%2Fqrcode%2Fqrcode.php;h=84a1961888667833fe3f84cdaa3943bcf192bd11;hb=49e62f22ad750d4d60936ec8437caee91809b179;hp=5f6e76a2f8c42d035f0c7026158b463935d953b0;hpb=79851b489087f8a3027ecd805255cd13ee6fcf63;p=github%2Fshaarli%2FShaarli.git diff --git a/plugins/qrcode/qrcode.php b/plugins/qrcode/qrcode.php index 5f6e76a2..84a19618 100644 --- a/plugins/qrcode/qrcode.php +++ b/plugins/qrcode/qrcode.php @@ -17,7 +17,11 @@ function hook_qrcode_render_linklist($data) $qrcode_html = file_get_contents(PluginManager::$PLUGINS_PATH . '/qrcode/qrcode.html'); foreach ($data['links'] as &$value) { - $qrcode = sprintf($qrcode_html, $value['real_url'], $value['real_url'], PluginManager::$PLUGINS_PATH); + $qrcode = sprintf($qrcode_html, + urlencode($value['url']), + $value['url'], + PluginManager::$PLUGINS_PATH + ); $value['link_plugin'][] = $qrcode; }