[moodle] / contrib / plugins / blocks / mrbs / web / escapeshellarg.php Repository:

View of /contrib/plugins/blocks/mrbs/web/escapeshellarg.php

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (download) (annotate)
Fri Dec 28 14:53:05 2007 WST (22 months, 3 weeks ago) by arborrow
Branch: MAIN
CVS Tags: Root_MOODLE_18_STABLE, HEAD
Branch point for: MOODLE_18_STABLE
Changes since 1.1: +2 -2 lines
CONTRIB-237 - continued param checks and removing blank lines at end of files
<?php
require_once("../../../config.php"); //for Moodle integration
/* $Id: escapeshellarg.php,v 1.2 2007/12/28 05:53:05 arborrow Exp $
 *
 * Included if your PHP version is less than 4.0.3 and therefore this
 * function doesn't exist.
 *
 */

function escapeshellarg($x)
{
  return "'".ereg_replace("'", "'\\''", $x)."'";
} 

?>

Moodle CVS Admin
ViewVC Help
Powered by ViewVC 1.0.7