Skip to content

Commit

Permalink
Item9808: double up backslashes in SQL server constant strings
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/DBIStoreContrib@17297 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Feb 24, 2014
1 parent 6f72b69 commit 7536be1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Foswiki/Contrib/DBIStoreContrib/Personality/ODBC.pm
Expand Up @@ -91,9 +91,8 @@ sub regexp {
return "dbo.fn_RegExIsMatch($lhs,$rhs,1)=1"; # risky!
}
$rhs =~ s/'/\\'/g;
$rhs =~ s/\\/\\/g;
$rhs =~ s/\\/\\\\/g;

# SMELL:
return "dbo.fn_RegExIsMatch($lhs,'$rhs',1)=1";
}

Expand Down

0 comments on commit 7536be1

Please sign in to comment.