Page MenuHomeDevCentral

D729.id1829.diff
No OneTemporary

D729.id1829.diff

diff --git a/page.php b/page.php
--- a/page.php
+++ b/page.php
@@ -385,7 +385,7 @@
}
function extractYYYYMMDDDateFromURL() {
- $pattern = "@/([12][0-9]{3})\-([0-9]{2})\-([0-9]{2})/@";
+ $pattern = "@/([12][0-9]{3})[/\-]([0-9]{2})[/\-]([0-9]{2})/@";
if (preg_match($pattern, $this->url, $matches)) {
$this->yyyy = $matches[1];
$this->mm = $matches[2];
@@ -394,7 +394,7 @@
}
function extractYYYYDDMMateFromURL() {
- $pattern = "@/([12][0-9]{3})\-([0-9]{2})\-([0-9]{2})/@";
+ $pattern = "@/([12][0-9]{3})[/\-]([0-9]{2})[/\-]([0-9]{2})/@";
if (preg_match($pattern, $this->url, $matches)) {
$this->yyyy = $matches[1];
$this->mm = $matches[3];

File Metadata

Mime Type
text/plain
Expires
Thu, May 1, 10:38 (18 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2620850
Default Alt Text
D729.id1829.diff (761 B)

Event Timeline