Skip to content
This repository has been archived by the owner on Jun 20, 2024. It is now read-only.

Commit

Permalink
Some extra sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
ecoslado committed Feb 14, 2017
1 parent 9d14907 commit 30079ae
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions dfTools.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ function cb2($matches){
public static function cleanURL($text)
{
$text = trim($text);
$text = preg_replace( "/\r|\n/", "", $text);
$text = explode("?", $text);

$baseUrl = array();
Expand Down
Binary file modified dist/doofinder-p1.5-latest.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion doofinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class Doofinder extends Module

const GS_SHORT_DESCRIPTION = 1;
const GS_LONG_DESCRIPTION = 2;
const VERSION = "2.1.14";
const VERSION = "2.1.15";
const YES = 1;
const NO = 0;

Expand Down
2 changes: 1 addition & 1 deletion feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ function slugify($text)
echo dfTools::splitReferences($product_title).TXT_SEPARATOR;

// TAGS
echo $row['tags'];
echo dfTools::cleanString($row['tags']);

// PRODUCT PRICE & ON SALE PRICE
if ($cfg_display_prices && !$cfg_product_variations)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder-for-prestashop",
"version": "2.1.14",
"version": "2.1.15",
"devDependencies": {
"grunt": "^0.4.5",
"grunt-contrib-clean": "^0.5.0",
Expand Down

0 comments on commit 30079ae

Please sign in to comment.