From 2bc9734957d8eeaeef97b81ecd52bbc0b38de78d Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Fri, 30 Nov 2012 00:01:52 -0500 Subject: [PATCH] Allow characters with special characters --- d3hog_driver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3hog_driver.php b/d3hog_driver.php index 5bf6b84..e7987fe 100644 --- a/d3hog_driver.php +++ b/d3hog_driver.php @@ -5,7 +5,7 @@ include_once(__DIR__ . '/libs/dpclass.php'); if($_POST['submit']) { $diabloProgressUrl = trim($_POST['url']); $elementalOnWeapon = isset($_POST['elemental']['elemental']) ? true : false; - if(preg_match('{^http://www.diabloprogress.com/hero/[\w]+\-[\d]+/[\w]+/[\d]+$}', $diabloProgressUrl) != 1) { + if(preg_match('{^http://www.diabloprogress.com/hero/.*\-[\d]+/.*/[\d]+$}', $diabloProgressUrl) != 1) { die('Bad URL. Please enter the entire diablo progress URL.

Example: http://www.diabloprogress.com/hero/celanian-1548/HsuMing/21706367'); }