Changeset 672


Ignore:
Timestamp:
Mar 16, 2019 11:47:40 PM (5 years ago)
Author:
anonymous
Message:
 
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/js/Utilities.js

    r671 r672  
    225225}
    226226
     227// https://github.com/benjamingr/RegExp.escape
     228if(!RegExp.escape){
     229    RegExp.escape = function(s){
     230        return String(s).replace(/[\\^$*+?.()|[\]{}]/g, '\\$&');
     231    };
     232}
  • trunk/lib/Utilities.inc.php

    r671 r672  
    14551455    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    14561456    curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36");
    1457     curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Don't pass through data to the browser.
     1457    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); // Don't pass through data to the browser.
    14581458    curl_setopt($ch, CURLOPT_BUFFERSIZE, 128); // Frequent progress function calls.
    14591459    curl_setopt($ch, CURLOPT_NOPROGRESS, false); // Required to use CURLOPT_PROGRESSFUNCTION.
Note: See TracChangeset for help on using the changeset viewer.