Merge branch 'hotfix-special_characters'
This commit is contained in:
commit
a4dc61ff09
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ include_once(__DIR__ . '/libs/dpclass.php');
|
||||||
if($_POST['submit']) {
|
if($_POST['submit']) {
|
||||||
$diabloProgressUrl = trim($_POST['url']);
|
$diabloProgressUrl = trim($_POST['url']);
|
||||||
$elementalOnWeapon = isset($_POST['elemental']['elemental']) ? true : false;
|
$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.<br/><br/>Example: http://www.diabloprogress.com/hero/celanian-1548/HsuMing/21706367');
|
die('Bad URL. Please enter the entire diablo progress URL.<br/><br/>Example: http://www.diabloprogress.com/hero/celanian-1548/HsuMing/21706367');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue