/moodle/code/contrib/contrib/old/blog/lib/weblib.php: $haystack = ereg_replace("$list_of_words_cp", "$left_string"."\\1"."$right_string", $haystack); /moodle/code/contrib/contrib/old/blog/blog/api.php: $iso_date = ereg_replace('[- ]', '', userdate($datetime, $apidateformat)); /moodle/code/contrib/contrib/old/blog/blog/api.php: // $body = ereg_replace("\n", "\r\n", $body); /moodle/code/contrib/contrib/old/blog/blog/api.php: $iso_date = ereg_replace('[- ]', '', userdate($datetime, $apidateformat)); /moodle/code/contrib/contrib/old/blog/blog/api.php: // $body = ereg_replace("\n", "\r\n", $body); /moodle/code/contrib/contrib/old/blog/blog/xmlrpc.inc: $op.=ereg_replace("^[#a-zA-Z0-9]+;", /moodle/code/contrib/contrib/old/blog/blog/xmlrpc.inc: $_xh[$parser]['method']=ereg_replace("^[\n\r\t ]+", '', $_xh[$parser]['ac']); /moodle/code/contrib/contrib/old/blog/blog/class.BlogEntry.php: $this->entryBody = ereg_replace('', "'", stripslashes_safe($entrydetails->body)); /moodle/code/contrib/contrib/old/blog/blog/class.BlogEntry.php: $this->entryExtendedBody = ereg_replace('', "'", stripslashes_safe($entrydetails->extendedbody)); /moodle/code/contrib/contrib/old/blog/blog/class.BlogEntry.php: $this->entryTitle = ereg_replace('', "'", stripslashes_safe($entrydetails->title)); /moodle/code/contrib/contrib/old/blog/blog/class.BlogEntry.php: $dataobject->summary = ereg_replace("'", '', $dataobject->summary); /moodle/code/contrib/contrib/old/blog/blog/class.BlogEntry.php: $dataobject->content= ereg_replace("'", '', $dataobject->content); /moodle/code/contrib/contrib/old/blog/blog/class.BlogEntry.php: $dataobject->subject = ereg_replace("'", '', $dataobject->subject); /moodle/code/contrib/contrib/old/blog/blog/class.BlogInfo.php: $title = ereg_replace("'", '', $title); /moodle/code/contrib/contrib/old/blog/blog/class.BlogInfo.php: $body = ereg_replace("'", '', $body); /moodle/code/contrib/contrib/old/blog/blog/class.BlogInfo.php: $extendedbody = ereg_replace("'", '', $extendedbody); /moodle/code/contrib/contrib/old/blog/blog/class.BlogInfo.php: $body = ereg_replace("'", '', $body); /moodle/code/contrib/contrib/old/blog/blog/class.BlogInfo.php: $extendedbody = ereg_replace("'", '', $extendedbody); /moodle/code/contrib/contrib/old/blog/blog/class.BlogInfo.php: $title = ereg_replace("'", '', $title); /moodle/code/contrib/contrib/old/blog/blog/tb.php:$track_id = ereg_replace('^/', '', $track_id); /moodle/code/contrib/contrib/old/compuproggy/help_translator.php: $sTargetFile = $sBaseDir.ereg_replace("^".$sBaseDir."en", strtolower($sLanguage), $sOriginalFile); /moodle/code/contrib/contrib/old/compuproggy/help_translator.php: $sOriginalUrl = $SERVER_NAME.dirname($PHP_SELF).$sLanguageBase."lang/".ereg_replace("^".$sBaseDir, "", $sOriginalFile); /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $param = ereg_replace('[[:cntrl:]]|[<>"`\|\':\\/]', '', $param); /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $param = ereg_replace('\.\.+', '', $param); /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $param = ereg_replace('[[:cntrl:]]|[<>"`\|\':]', '', $param); /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $param = ereg_replace('\.\.+', '', $param); /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $param = ereg_replace('//+', '/', $param); /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $param = ereg_replace('/(\./)+', '/', $param); /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $p_header['filename'] = ereg_replace('[[:cntrl:]]', '', $p_header['filename']); //strip control chars first! /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $p_header['filename'] = ereg_replace('\.\.+', '', $p_header['filename']); //directory traversal protection /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $p_header['filename'] = ereg_replace('[:*"?<>|]', '_', $p_header['filename']); //replace illegal chars /moodle/code/contrib/contrib/old/gradebook_cdc/1.5/lib/moodlelib.php: $p_header['filename'] = ereg_replace('^([a-zA-Z])_', '\1:', $p_header['filename']); //repair drive letter /moodle/code/contrib/contrib/patches/public_private/calendar/lib.php: $text = ereg_replace('(%B.+%Y|%Y.+%B|%Y.+%m[^ ]+)', '\\1', $text); /moodle/code/contrib/contrib/patches/public_private/calendar/lib.php: $text = ereg_replace('(F.+Y|Y.+F|Y.+m[^ ]+)', '\\1', $text); /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $param = ereg_replace('[[:cntrl:]]|[<>"`\|\':\\/]', '', $param); /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $param = ereg_replace('\.\.+', '', $param); /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $param = ereg_replace('[[:cntrl:]]|[<>"`\|\':]', '', $param); /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $param = ereg_replace('\.\.+', '', $param); /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $param = ereg_replace('//+', '/', $param); /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ return ereg_replace('/(\./)+', '/', $param); /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $string = ereg_replace('[[:space:]]*','',$string); //Whitespace are out now /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $p_header['filename'] = ereg_replace('[[:cntrl:]]', '', $p_header['filename']); //strip control chars first! /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $p_header['filename'] = ereg_replace('\.\.+', '', $p_header['filename']); //directory traversal protection /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $p_header['filename'] = ereg_replace('[:*"?<>|]', '_', $p_header['filename']); //replace illegal chars /moodle/code/contrib/contrib/patches/curriculum/curriculum.patch:+ $p_header['filename'] = ereg_replace('^([a-zA-Z])_', '\1:', $p_header['filename']); //repair drive letter /moodle/code/contrib/contrib/patches/question_calculated_extended/question_calculated_extended.patch:- $formula = ereg_replace("^$regs[2]\\([^)]*\\)", '1', $formula); /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $param = ereg_replace('[[:cntrl:]]|[<>"`\|\':\\/]', '', $param); /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $param = ereg_replace('\.\.+', '', $param); /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $param = ereg_replace('[[:cntrl:]]|[<>"`\|\':]', '', $param); /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $param = ereg_replace('\.\.+', '', $param); /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $param = ereg_replace('//+', '/', $param); /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $param = ereg_replace('/(\./)+', '/', $param); /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $p_header['filename'] = ereg_replace('[[:cntrl:]]', '', $p_header['filename']); //strip control chars first! /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $p_header['filename'] = ereg_replace('\.\.+', '', $p_header['filename']); //directory traversal protection /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $p_header['filename'] = ereg_replace('[:*"?<>|]', '_', $p_header['filename']); //replace illegal chars /moodle/code/contrib/contrib/patches/activity_locking/lib/moodlelib.php: $p_header['filename'] = ereg_replace('^([a-zA-Z])_', '\1:', $p_header['filename']); //repair drive letter /moodle/code/contrib/contrib/patches/grade_stat/lib/phplot/phplot.php: $which_text = ereg_replace("\r", "", $which_text); /moodle/code/contrib/contrib/plugins/question/format/clozejr/format.php: $qtext = ereg_replace("(||\n)", "", $qtext); /moodle/code/contrib/contrib/plugins/question/format/clozejr/format.php: $qtext = ereg_replace("\{\#".$countquestions."\}", "{".$answer."}", $qtext); /moodle/code/contrib/contrib/plugins/question/format/clozejr/format.php: $qtext = ereg_replace("", "", $qtext); /moodle/code/contrib/contrib/plugins/blocks/crot/compare.php: $textA = "
".ereg_replace("\n","
",$textA)."
"; /moodle/code/contrib/contrib/plugins/blocks/crot/compare.php: $textB = "
".ereg_replace("\n","
",$textB)."
"; /moodle/code/contrib/contrib/plugins/blocks/file_manager/lib.php: $p_header['filename'] = ereg_replace('[[:cntrl:]]', '', $p_header['filename']); //strip control chars first! /moodle/code/contrib/contrib/plugins/blocks/file_manager/lib.php: $p_header['filename'] = ereg_replace('\.\.+', '', $p_header['filename']); //directory traversal protection /moodle/code/contrib/contrib/plugins/blocks/file_manager/lib.php: $p_header['filename'] = ereg_replace('[:*"?<>|]', '_', $p_header['filename']); //replace illegal chars /moodle/code/contrib/contrib/plugins/blocks/file_manager/lib.php: $p_header['filename'] = ereg_replace('^([a-zA-Z])_', '\1:', $p_header['filename']); //repair drive letter /moodle/code/contrib/contrib/plugins/blocks/msg/services/groups.php: $newshortname = trim(ereg_replace("\[id=([[:alnum:]])+\]","",$group->shortname)); /moodle/code/contrib/contrib/plugins/blocks/ilp/reports.php: $text = ereg_replace("<(/)?(font|span|del|ins)[^>]*>","",$text); /moodle/code/contrib/contrib/plugins/blocks/ilp/reports.php: $text = ereg_replace("<([^>]*)(class|lang|style|size|face)=(\"[^\"]*\"|'[^']*'|[^>]+)([^>]*)>","<\\1>",$text); /moodle/code/contrib/contrib/plugins/blocks/ilp/reports.php: $text = ereg_replace("<([^>]*)(class|lang|style|size|face)=(\"[^\"]*\"|'[^']*'|[^>]+)([^>]*)>","<\\1>",$text); /moodle/code/contrib/contrib/plugins/blocks/smb_web_client/class_smbwebclient.php: $this->Go(ereg_replace('/$','',ereg_replace('^/','',$this->cfgSambaRoot.'/'.$path))); /moodle/code/contrib/contrib/plugins/blocks/smb_web_client/class_smbwebclient.php: default: $path = ereg_replace('^/', '', $this->where.'/'.$relative); /moodle/code/contrib/contrib/plugins/blocks/bookmark/import.php: $name=htmlentities(ereg_replace("^( *
<[^>]*>)([^<]*)(.*)", "\\2", $line), ENT_QUOTES); /moodle/code/contrib/contrib/plugins/blocks/bookmark/import.php: $name=htmlentities(ereg_replace("^( *
<[^>]*>)([^<]*)(.*)", "\\2", $line), ENT_QUOTES); /moodle/code/contrib/contrib/plugins/blocks/bookmark/import.php: $url=htmlentities(ereg_replace("([^H]*HREF=\")([^\"]*)(\".*)", "\\2", $line), ENT_QUOTES); /moodle/code/contrib/contrib/plugins/blocks/mrbs/web/escapeshellarg.php: return "'".ereg_replace("'", "'\\''", $x)."'"; /moodle/code/contrib/contrib/plugins/blocks/mrbs/web/month.php:$all_day = ereg_replace(" ", " ", get_string('all_day','block_mrbs')); /moodle/code/contrib/contrib/plugins/blocks/mrbs/web/month.php: $start_str = ereg_replace(" ", " ", period_time_string($row[0])); /moodle/code/contrib/contrib/plugins/blocks/mrbs/web/month.php: $end_str = ereg_replace(" ", " ", period_time_string($row[1], -1)); /moodle/code/contrib/contrib/plugins/blocks/mrbs/web/session_php.php: $cookie_path = ereg_replace('[^/]*$', '', $cookie_path); /moodle/code/contrib/contrib/plugins/mod/hiperbook/lib.php: $ref = ereg_replace('[^/]+/\.\./', '', $ref); /moodle/code/contrib/contrib/plugins/mod/magtest/locallib.php: // $output = ereg_replace("\n","
\n",$buffer); /moodle/code/contrib/contrib/plugins/mod/form/db/mysql.php: $newmodinfo = ereg_replace('"data";', '"form";', $course->modinfo); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: return("IN (".ereg_replace("([^,]+)","'\\1'",join(",",$array)).")"); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $qchoice = ereg_replace("[\r\n\t]", ' ', $qchoice); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $val = ereg_replace("[\r\n\t]", ' ', $val); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $val = ereg_replace("[\r\n\t]", ' ', $val); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $ridstr = "IN (" . ereg_replace("([^,]+)","'\\1'", join(",", $rids)) .")"; /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $ridstr = "IN (" . ereg_replace("([^,]+)","'\\1'", join(",", $rids)) .")"; /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $modality = ereg_replace("[\r\n\t]", ' ', $modality); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $modality = ereg_replace("[\r\n\t]", ' ', $modality); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $thisresponse = ereg_replace("[\r\n\t]", ' ', $thisresponse); /moodle/code/contrib/contrib/plugins/mod/questionnaire/locallib.php: $thisresponse = ereg_replace('"', '""', $thisresponse); /moodle/code/contrib/contrib/plugins/mod/questionnaire/questiontypes/questiontypes.class.php: $formdata->{'q'.$this->id} = ereg_replace("[^0-9.\-]*(-?[0-9]*\.?[0-9]*).*", '\1', $formdata->{'q'.$this->id}); /moodle/code/contrib/contrib/plugins/mod/book/lib.php: $ref = ereg_replace('[^/]+/\.\./', '', $ref); /moodle/code/contrib/contrib/plugins/mod/resource/type/globe/lib/sqi/metadata.php: $vcard = ereg_replace("\n", "", $childlevel3->nodeValue) ; /moodle/code/contrib/contrib/tools/webctimport/wct_qti_lib.php: $regs[0], ereg_replace('[)(]', '', $regs[0]), $formula);