Browse Source

Fix full cover doujin autofill

spaghetti 8 years ago
parent
commit
ef4916900f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      sections/ajax/doujin.php

+ 1
- 1
sections/ajax/doujin.php View File

68
   // were we able to find the first page of the gallery?
68
   // were we able to find the first page of the gallery?
69
   if ($galmatch[1]) {
69
   if ($galmatch[1]) {
70
 	  $image_page = file_get_contents($galmatch[1]);
70
 	  $image_page = file_get_contents($galmatch[1]);
71
-	  $re = '/'.preg_quote('"><img id="img" src="').'(.*)'.preg_quote('" style=').'/';
71
+	  $re = '/'.preg_quote('"><img src="').'([^<]*)'.preg_quote('" style=').'/';
72
 	  preg_match($re, $image_page, $imgmatch);
72
 	  preg_match($re, $image_page, $imgmatch);
73
 	  // were we able to find the image url?
73
 	  // were we able to find the image url?
74
 	  if ($imgmatch[1]) {
74
 	  if ($imgmatch[1]) {

Loading…
Cancel
Save