Bug Site Crashes and Times Out When Trying to View a Review

Status
Not open for further replies.
I found the problem, it's bad regex when trying to change the custom field link into a shorter link.
Open dbtech/review/includes/class_core.php

At about line 2316 change

PHP:
                if (preg_match("#^(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.\-]*(\?\S+)?)?)?)$#", $field_data))

to

PHP:
                if (substr($field_data, 0, 4) == 'http')

that should fix it.
 
Status
Not open for further replies.

Legacy DragonByte Reviews

vBulletin 4.x.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
194
Customer rating
0.00 star(s) 0 ratings
Back
Top