escape regular expressions; fix typo in variable name
Merge pull request #1953 from owncloud/escape_regular_expressions

escape regular expressions; fix typo in variable name