includes/wikiengine/Tables.php
changeset 285 e72bf2c24875
parent 272 27f5ac58992c
child 294 444c34a3886b
equal deleted inserted replaced
284:d823e49e2e4e 285:e72bf2c24875
     1 <?php
     1 <?php
     2 
     2 
     3 /*
     3 /*
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     4  * Enano - an open-source CMS capable of wiki functions, Drupal-like sidebar blocks, and everything in between
     5  * Version 1.0.3 (Dyrad)
     5  * Version 1.0.4 (Ellyyllon)
     6  * Copyright (C) 2006-2007 Dan Fuhry
     6  * Copyright (C) 2006-2007 Dan Fuhry
     7  *
     7  *
     8  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     8  * This program is Free Software; you can redistribute and/or modify it under the terms of the GNU General Public License
     9  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
     9  * as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
    10  *
    10  *
   276 	 * @param $text
   276 	 * @param $text
   277 	 * @return HTML-encoded text fragment
   277 	 * @return HTML-encoded text fragment
   278 	 */
   278 	 */
   279 	function encodeAttribute( $text ) {
   279 	function encodeAttribute( $text ) {
   280     
   280     
   281     // In Enano 1.0.3, added this cheapo hack to keep ampersands
   281     // In Enano 1.0.4, added this cheapo hack to keep ampersands
   282     // from being double-sanitized. Thanks to markybob from #deluge.
   282     // from being double-sanitized. Thanks to markybob from #deluge.
   283     
   283     
   284     // htmlspecialchars() the "manual" way
   284     // htmlspecialchars() the "manual" way
   285     $encValue = strtr( $text, array(
   285     $encValue = strtr( $text, array(
   286       '&amp;'  => '&',
   286       '&amp;'  => '&',