From cdc680110a3c508e43cf142122abc33d2f70c053 Mon Sep 17 00:00:00 2001 From: Eloy Lafuente Date: Tue, 27 Jul 2010 23:14:28 +0000 Subject: [PATCH] MDL-22179 backup interlinks - save a bunch (zillions) of regexps to happen --- backup/util/helper/restore_decode_processor.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backup/util/helper/restore_decode_processor.class.php b/backup/util/helper/restore_decode_processor.class.php index 9fa58bc5db2..dda998e1531 100644 --- a/backup/util/helper/restore_decode_processor.class.php +++ b/backup/util/helper/restore_decode_processor.class.php @@ -162,8 +162,8 @@ class restore_decode_processor { * Perform some general checks in content. Returning false rules processing is skipped */ protected function precheck_content($content) { - // TODO: look for $@ in content - return $content; + // Look for $@ in content (all interlinks contain that) + return (strpos($content, '$@') === false) ? false : $content; } }