mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-09 12:54:26 +02:00
revert patch for secuity hole, update site url
This commit is contained in:
@@ -18,10 +18,6 @@
|
|||||||
* License along with this library; if not, write to the Free Software
|
* License along with this library; if not, write to the Free Software
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*
|
*
|
||||||
* For questions, help, comments, discussion, etc., please join the
|
|
||||||
* Smarty mailing list. Send a blank e-mail to
|
|
||||||
* smarty-discussion-subscribe@googlegroups.com
|
|
||||||
*
|
|
||||||
* @link http://www.smarty.net/
|
* @link http://www.smarty.net/
|
||||||
* @author Monte Ohrt <monte at ohrt dot com>
|
* @author Monte Ohrt <monte at ohrt dot com>
|
||||||
* @author Andrei Zmievski <andrei@php.net>
|
* @author Andrei Zmievski <andrei@php.net>
|
||||||
@@ -1708,10 +1704,7 @@ class Smarty_Compiler extends Smarty {
|
|||||||
$_return = $var_expr;
|
$_return = $var_expr;
|
||||||
}
|
}
|
||||||
// replace double quoted literal string with single quotes
|
// replace double quoted literal string with single quotes
|
||||||
|
$_return = preg_replace('~^"([\s\w]+)"$~',"'\\1'",$_return);
|
||||||
// The follwoing line has been replaced to close a function injection security hole (U.Tews)
|
|
||||||
// $_return = preg_replace('~^"([\s\w]+)"$~',"'\\1'",$_return);
|
|
||||||
$_return = str_replace('"',"'",$_return);
|
|
||||||
return $_return;
|
return $_return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user