[Freeswitch-svn] [commit] r8783 - freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl

Freeswitch SVN intralanman at freeswitch.org
Fri Jun 6 14:07:34 EDT 2008


Author: intralanman
Date: Fri Jun  6 14:07:34 2008
New Revision: 8783

Modified:
   freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php

Log:
RAAAAIIIIDD



Modified: freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php
==============================================================================
--- freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php	(original)
+++ freeswitch/trunk/scripts/contrib/intralanman/PHP/fs_curl/dialplan_importer.php	Fri Jun  6 14:07:34 2008
@@ -118,14 +118,14 @@
         foreach ($extension -> condition as $condition) {
             //print_r($condition);
             $cf = $condition['field'];
-            $ce = str_replace('\\', '\\\\', $condition['expression']);
+            $ce = addslashes($condition['expression']);
             //echo "<pre>Condidtion Expression for $en:\n    before: " . $condition['expression'] . "\n    after: $ce</pre>";
             $cb = $condition['break'];
             $weight = 0;
             foreach ($condition as $type => $action) {
                 //echo "-------------------$type-----------------------------\n";
                 $app_name = $action['application'];
-                $app_data = str_replace('\\', '\\\\', $action['data']);
+                $app_data = addslashes($action['data']);
                 $weight++;
                 //echo "$cn\t$en\t$cf\t$ce\t$cc\t$app_name\t$app_data\t$ec\t$global_weight\t$weight\n";
                 $query = sprintf('%s %s %s %s %s %s;',



More information about the Freeswitch-svn mailing list