2
0
فهرست منبع

ZF-9051: add deliminters to PCRE expressions

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20833 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 سال پیش
والد
کامیت
dae8dc23a1
2فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 1 1
      library/Zend/Service/WindowsAzure/Storage/Blob.php
  2. 1 1
      library/Zend/Service/WindowsAzure/Storage/Queue.php

+ 1 - 1
library/Zend/Service/WindowsAzure/Storage/Blob.php

@@ -1343,7 +1343,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
             return true;
             return true;
         }
         }
             
             
-        if (preg_match("^[a-z0-9][a-z0-9-]*$", $containerName) === 0) {
+        if (preg_match("/^[a-z0-9][a-z0-9-]*$/", $containerName) === 0) {
             return false;
             return false;
         }
         }
     
     

+ 1 - 1
library/Zend/Service/WindowsAzure/Storage/Queue.php

@@ -505,7 +505,7 @@ class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_
 	 */
 	 */
     public static function isValidQueueName($queueName = '')
     public static function isValidQueueName($queueName = '')
     {
     {
-        if (preg_match("^[a-z0-9][a-z0-9-]*$", $queueName) === 0) {
+        if (preg_match("/^[a-z0-9][a-z0-9-]*$/", $queueName) === 0) {
             return false;
             return false;
         }
         }