http://www.mediawiki.org/wiki/Special:Code/MediaWiki/87820

Revision: 87820
Author:   ashley
Date:     2011-05-10 14:26:19 +0000 (Tue, 10 May 2011)
Log Message:
-----------
GoogleDocs4MW: intval() should be sufficient enough here (+bump version number 
and copyright year)

Modified Paths:
--------------
    trunk/extensions/GoogleDocs4MW/GoogleDocs4MW.php

Modified: trunk/extensions/GoogleDocs4MW/GoogleDocs4MW.php
===================================================================
--- trunk/extensions/GoogleDocs4MW/GoogleDocs4MW.php    2011-05-10 14:23:45 UTC 
(rev 87819)
+++ trunk/extensions/GoogleDocs4MW/GoogleDocs4MW.php    2011-05-10 14:26:19 UTC 
(rev 87820)
@@ -5,9 +5,9 @@
  *
  * @file
  * @ingroup Extensions
- * @version 1.0
+ * @version 1.1
  * @author Jack Phoenix <j...@shoutwiki.com>
- * @copyright © 2008-2010 Jack Phoenix
+ * @copyright © 2008-2011 Jack Phoenix
  * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License 
2.0 or later
  */
 
@@ -18,7 +18,7 @@
 // Add extension credits that show up on Special:Version
 $wgExtensionCredits['parserhook'][] = array(
        'name' => 'GoogleDocs4MW',
-       'version' => '1.0',
+       'version' => '1.1',
        'author' => 'Jack Phoenix',
        'description' => 'Adds <tt>&lt;googlespreadsheet&gt;</tt> tag for 
Google Docs\' spreadsheets display',
        'url' => 'http://www.mediawiki.org/wiki/Extension:GoogleDocs4MW'
@@ -39,8 +39,8 @@
        $key = htmlspecialchars( $input );
 
        $output = '<iframe class="googlespreadsheetframe" width="' .
-                               htmlspecialchars( $width ) . '" height="' .
-                               htmlspecialchars( $height ) . '" style="' .
+                               intval( $width ) . '" height="' .
+                               intval( $height ) . '" style="' .
                                htmlspecialchars( $style ) .
                                '" 
src="http://spreadsheets.google.com/pub?key=' . $key .
                                '&output=html&widget=true"></iframe>';


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to