Skip to content

Commit

Permalink
Исправлена ошибка в проверке имени аватара блога
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyv committed Feb 25, 2015
1 parent 15bf33f commit 865ed4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engine/classes/modules/img/Img.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ protected function _getDefaultSkinImage($sFile, $sPrefix, $iSize) {

$sImageFile = '';
$sName = basename($sFile);
if (preg_match('/^' . preg_quote($sPrefix) . '_([a-z0-9-]+)?_([a-z0-9\-]+)(_(male|female))?([\-0-9a-z\.]+)?(\.[a-z]+)$/i', $sName, $aMatches)) {
if (preg_match('/^' . preg_quote($sPrefix) . '_([a-z0-9-]+)(_[a-z0-9\-]+)?(_(male|female))?([\-0-9a-z\.]+)?(\.[a-z]+)$/i', $sName, $aMatches)) {
$sName = $aMatches[0];
$sSkin = $aMatches[1];
$sType = $aMatches[2];
Expand Down

0 comments on commit 865ed4d

Please sign in to comment.