Permalink
Browse files

Fixing slashes bug with code editor spitting out errors on the frontend

  • Loading branch information...
1 parent d15ed25 commit 63b95499f4b4beca0db21cebae6be48d943654f5 Stian Didriksen committed Jan 19, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 controller.php
View
@@ -2089,7 +2089,7 @@ function save_editor_file(){
$db = JFactory::getDBO();
$type = $db->Quote(JRequest::getCmd('type'));
$parent = $db->Quote(JRequest::getCmd('parent'));
- $contents = $db->Quote(addslashes($_POST['contents']));
+ $contents = $db->Quote($_POST['contents']);
$filename = $db->Quote(JRequest::getCmd('file'));
$query = "DELETE FROM `#__configurator_customfiles` ".

0 comments on commit 63b9549

Please sign in to comment.