From 08e57e6071c90af2f1bede01bf731161472c24c4 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 7 May 2005 20:44:26 +0000 Subject: [PATCH] r93: Escape single quotes when exporting the phrasetext. --- docs/phrasetools.php | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/phrasetools.php b/docs/phrasetools.php index 57d90a0..13b7a2b 100644 --- a/docs/phrasetools.php +++ b/docs/phrasetools.php @@ -210,6 +210,7 @@ if ($_REQUEST['do'] == 'export') $phrases = $db->query("SELECT * FROM " . TABLE_PREFIX . "phrase ORDER BY varname"); while ($phrase = $db->fetch_array($phrases)) { + $phrase['phrasetext'] = str_replace("'", "\'", $phrase['phrasetext']); $phrasebits[] = "\n\t'$phrase[varname]' => '$phrase[phrasetext]'"; } -- 2.43.5